home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / mac / developm / technote / tn_110.hqx / TN.110.MPW Stand-Alone Code
Unknown  |  1990-02-19  |  36.5 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert Jesper Olsen Module (music/jesperOlsen) magic Supported
1% dexvert TTComp Archive (archive/ttcomp) fallback Supported
100% file TTComp archive data, binary, 4K dictionary default (weak)
99% file data default
100% TrID TTComp archive compressed (bin-4K) default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 06 01 c8 00 01 00 04 | 00 00 00 ff ff ff ff fc |........|........|
|00000010| 00 01 00 00 90 da 01 58 | 01 58 00 00 90 be 01 60 |.......X|.X.....`|
|00000020| 01 60 00 00 90 be 01 60 | 00 03 00 00 00 48 00 48 |.`.....`|.....H.H|
|00000030| 00 00 00 00 02 da 02 28 | ff e1 ff e2 02 f9 02 46 |.......(|.......F|
|00000040| 03 47 05 28 03 fc 00 02 | 00 00 00 48 00 48 00 00 |.G.(....|...H.H..|
|00000050| 00 00 02 da 02 28 00 01 | 00 00 00 64 00 00 00 01 |.....(..|...d....|
|00000060| 00 01 01 01 00 00 00 01 | 7d 00 00 01 00 01 00 6a |........|}......j|
|00000070| e2 fc 00 6a e3 88 80 23 | 00 00 00 02 00 19 01 90 |...j...#|........|
|00000080| 00 00 00 00 00 40 00 00 | 00 00 00 00 00 00 00 01 |.....@..|........|
|00000090| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000a0| 00 03 00 29 00 03 00 29 | 00 00 00 01 00 00 66 86 |...)...)|......f.|
|000000b0| 00 40 00 00 66 06 00 14 | 00 18 01 b8 ff f2 00 ec |.@..f...|........|
|000000c0| ff f2 01 ba ff f8 00 00 | 00 ff ff ff ff ff 00 01 |........|........|
|000000d0| 00 00 00 01 00 00 00 00 | ff ff 00 00 66 1a 00 10 |........|....f...|
|000000e0| 00 00 07 fc 00 02 ff f2 | 00 1e ff f2 00 ec ff f2 |........|........|
|000000f0| 01 ba ff f8 00 00 00 ff | ff ff ff ff 00 07 00 19 |........|........|
|00000100| 00 07 00 19 00 00 00 01 | 00 00 74 5a 1c 80 00 00 |........|..tZ....|
|00000110| 6a 2e 0a 2c ff f2 00 1e | ff f2 00 ec ff f2 01 ba |j..,....|........|
|00000120| 00 00 00 00 ff 00 ff ff | ff ff 00 00 01 e6 03 01 |........|........|
|00000130| 00 01 0d ff 00 06 00 00 | 0c 00 00 14 00 01 0d 02 |........|........|
|00000140| 00 06 00 00 0c 00 00 14 | 00 29 f2 3f 31 f3 1f 30 |........|.).?1..0|
|00000150| f3 a0 0f 4d f5 0f 57 f3 | a0 f5 74 72 73 f6 70 f5 |...M..W.|..trs.p.|
|00000160| 32 63 9f 2d f4 1a 53 10 | f4 35 91 f0 95 d0 f3 90 |2c.-..S.|.5......|
|00000170| 00 06 00 00 0a 00 00 14 | 00 51 01 dd 03 01 00 00 |........|.Q......|
|00000180| 00 09 01 8c 02 07 02 07 | 02 07 02 07 02 07 02 07 |........|........|
|00000190| 02 07 02 07 02 07 02 07 | 02 07 00 34 fa 5f 09 f5 |........|...4._..|
|000001a0| 41 cb 37 c6 a0 f4 e5 21 | 0f 23 f3 2f 35 f3 6f 2c |A.7....!|.#./5.o,|
|000001b0| 0f 47 a5 f6 26 a8 07 30 | f5 32 63 9f 2d f4 1a 53 |.G..&..0|.2c.-..S|
|000001c0| 10 f4 35 91 f3 ff 0d 00 | 00 06 00 00 0c 00 00 14 |..5.....|........|
|000001d0| 00 3d f5 45 0a 73 f6 b0 | 2b 78 0f 27 f5 7f 44 f4 |.=.E.s..|+x.'..D.|
|000001e0| 5f 46 f2 7f 2c 0f 79 5f | 75 0c 63 0f 75 81 02 b1 |_F..,.y_|u.c.u...|
|000001f0| 0d 5a a5 f7 77 3f 67 0a | 73 f6 b0 c5 f6 df 6d 63 |.Z..w?g.|s.....mc|
|00000200| 9f 3a f0 d0 00 12 00 00 | 0c 00 00 14 00 0d 0c 00 |.:......|........|
|00000210| 00 16 00 13 0c 00 00 14 | 00 59 00 00 00 00 0a 53 |........|.Y.....S|
|00000220| f6 70 73 20 00 2b 1f 52 | 18 f7 5a 2f 3d f3 0f 3b |.ps .+.R|..Z/=..;|
|00000230| 00 00 00 0f 2f f2 a2 b7 | 80 78 0f 77 b6 20 2b 10 |..../...|.x.w. +.|
|00000240| df 75 3c 27 53 04 12 f7 | 54 38 f2 c0 73 72 02 50 |.u<'S...|T8..sr.P|
|00000250| f3 00 f2 af 2f f0 d0 00 | 00 06 00 00 09 00 00 16 |..../...|........|
|00000260| 00 2b 00 00 00 0f 2f f2 | a0 d7 48 2f 2c 02 b1 0f |.+..../.|..H/,...|
|00000270| 6d 63 96 25 4f 79 07 3c | af 75 91 80 f2 af 2f f0 |mc.%Oy.<|.u..../.|
|00000280| d0 00 00 06 00 00 09 00 | 00 16 00 16 f5 74 72 73 |........|.....trs|
|00000290| f6 70 60 f2 7f 57 f4 4f | 45 f4 6f 27 07 30 f4 3f |.p`..W.O|E.o'.0.?|
|000002a0| 0d 00 00 06 00 00 0e 01 | 00 14 00 1a 00 00 00 00 |........|........|
|000002b0| 00 00 00 0f 2d 50 f4 df | 79 f5 7f 44 f4 5f 46 f3 |....-P..|y..D._F.|
|000002c0| 3f 0d 00 06 00 00 09 00 | 00 16 00 0f 45 4e 44 2e |?.......|....END.|
|000002d0| 20 7b 6f 66 20 55 4e 49 | 54 7d 0d ff 00 06 00 00 | {of UNI|T}......|
|000002e0| 09 00 00 16 00 16 20 20 | 20 20 20 20 20 49 4d 50 |...... | IMP|
|000002f0| 4c 45 4d 45 4e 54 41 54 | 49 4f 4e 0d 00 06 00 00 |LEMENTAT|ION.....|
|00000300| 09 00 00 16 00 12 00 00 | 00 0f 55 f4 ef 49 f5 40 |........|..U..I.@|
|00000310| f5 7f 44 1d f3 bf 0d 00 | 00 06 00 00 09 00 00 16 |..D.....|........|
|00000320| 00 16 00 00 00 00 00 00 | 00 00 00 f4 5f 4e f4 4f |........|...._N.O|
|00000330| 0d 00 00 06 00 00 09 00 | 00 16 00 01 0d ff 00 06 |........|........|
|00000340| 00 00 0c 00 00 14 00 1b | f5 74 72 73 f6 70 60 f2 |........|.trs.p`.|
|00000350| 7f 57 f4 4f 45 f4 6f 27 | 07 30 f5 06 8c 6a f0 d0 |.W.OE.o'|.0...j..|
|00000360| 00 06 00 00 0e 01 00 14 | 00 4d 00 00 00 0f 53 29 |........|.M....S)|
|00000370| f5 7f 44 f4 5f 46 00 00 | f4 df 41 f4 9f 4e 0f 45 |..D._F..|..A..N.E|
|00000380| f5 8f 50 f4 ff 52 f5 40 | 00 00 00 00 00 00 00 00 |..P..R.@|........|
|00000390| f3 b0 2b 78 0f 77 7a a0 | f6 21 02 b1 01 32 4f 79 |..+x.wz.|.!...2Oy|
|000003a0| 0e 57 32 f0 d0 00 00 06 | 00 00 09 00 00 16 00 01 |.W2.....|........|
|000003b0| 0d ff 00 06 00 00 0c 00 | 00 14 00 42 00 00 00 00 |........|...B....|
|000003c0| 00 00 00 f2 d5 02 3f 31 | f3 1f 30 f4 9f 4e f4 9f |......?1|..0..N..|
|000003d0| 54 00 00 00 00 00 00 00 | 00 00 f2 30 5f 75 2e f7 |T.......|...0_u..|
|000003e0| 52 02 50 2b 78 0d 7a 1f | 0d 00 00 06 00 00 09 00 |R.P+x.z.|........|
|000003f0| 00 16 00 1c 00 00 00 0f | 23 73 ca f7 59 10 f3 cf |........|#s..Y...|
|00000400| 4f f5 3f 55 27 a8 f2 eb | f3 ef 0d 00 00 06 00 00 |O.?U'...|........|
|00000410| 09 00 00 16 00 01 0d 00 | 00 06 00 00 0c 00 00 14 |........|........|
|00000420| 00 00 ff d6 00 2d 03 be | 00 0d 4d 41 47 49 43 50 |.....-..|..MAGICP|
|00000430| 49 43 11 01 ff 23 00 00 | 00 06 00 00 0c 00 00 14 |IC...#..|........|
|00000440| 00 01 0d 00 00 06 00 00 | 0c 00 00 14 00 01 0d 03 |........|........|
|00000450| 00 06 00 00 0c 00 00 14 | 00 36 00 00 00 00 0f 52 |........|.6.....R|
|00000460| 1d 14 13 c1 90 d4 5f 6d | f3 a0 f4 2f 45 f4 5f 50 |......_m|.../E._P|
|00000470| f5 4f 57 f4 9f 43 f4 50 | 73 0d 7a 1f 3a 0f 49 37 |.OW..C.P|s.z.:.I7|
|00000480| 2f 2e ef 2e 5f 0d 00 06 | 00 00 09 00 00 16 00 01 |/..._...|........|
|00000490| 0d ff 00 06 00 00 0c 00 | 00 14 00 01 0d 04 00 06 |........|........|
|000004a0| 00 00 0c 00 00 15 00 30 | 00 00 00 00 00 09 f7 5e |.......0|.......^|
|000004b0| a7 c6 21 0f 2d f7 90 f4 | df 79 f4 93 72 0f 22 f7 |..!.-...|.y..r.".|
|000004c0| bf 53 f7 98 21 f6 df 46 | 5a 91 4f 7d f2 2f 0d 00 |.S..!..F|Z.O}./..|
|000004d0| 00 06 00 00 09 00 00 16 | 00 31 00 00 00 0f 4d f4 |........|.1....M.|
|000004e0| ff 56 f4 5f 2e f4 c0 f2 | 8f 41 f3 7f 29 f2 bf 2c |.V._....|.A..)..,|
|000004f0| f4 4f 30 00 00 00 0f 3b | 01 f7 81 cf 75 21 05 f7 |.O0....;|....u!..|
|00000500| 54 81 af 76 18 f0 d0 00 | 00 06 00 00 09 00 00 16 |T..v....|........|
|00000510| 00 01 0d 30 00 06 00 00 | 0c 00 00 14 00 01 0d 03 |...0....|........|
|00000520| 00 06 00 00 0c 00 00 14 | 00 43 00 00 00 0f 4c f4 |........|.C....L.|
|00000530| 9f 4e f4 b0 f4 1f 36 f2 | c0 f2 3f 24 f4 6f 46 f4 |.N....6.|..?$.oF.|
|00000540| 6f 43 00 00 00 00 f3 b0 | f6 d6 f6 b1 04 55 f6 d0 |oC......|.....U..|
|00000550| d5 40 2b 10 a5 c6 a0 f7 | 66 40 f2 7a 53 f6 7f 27 |.@+.....|f@.zS..'|
|00000560| f0 d0 00 06 00 00 09 00 | 00 16 00 40 00 00 00 00 |........|...@....|
|00000570| 00 00 00 f2 d5 0f 4d f7 | 9f 49 37 20 00 00 00 00 |......M.|.I7 ....|
|00000580| 00 00 00 00 00 f2 30 5f | 75 2e f7 52 02 50 2b 78 |......0_|u..R.P+x|
|00000590| 0d 7a 1f 0d 00 06 00 00 | 09 00 00 16 00 0e 00 00 |.z......|........|
|000005a0| 00 0a 73 f6 b0 fb 6f 0d | 00 06 00 00 09 00 00 16 |..s...o.|........|
|000005b0| 00 01 0d 00 00 06 00 00 | 0c 00 00 14 00 01 0d 01 |........|........|
|000005c0| 00 06 00 00 0c 00 00 14 | 00 16 00 00 00 0e 68 c6 |........|......h.|
|000005d0| a0 f4 93 72 f2 ee 0f 0d | 00 06 00 00 09 00 00 16 |...r....|........|
|000005e0| 00 01 0d 00 00 06 00 00 | 0c 00 00 14 00 15 20 20 |........|...... |
|000005f0| 20 20 20 20 20 45 4e 44 | 2e 20 20 20 7b 55 4e 49 | END|. {UNI|
|00000600| 54 7d 0d 01 00 06 00 00 | 09 00 00 16 00 3c 00 00 |T}......|.....<..|
|00000610| 00 0f 55 f4 ef 49 f5 40 | f4 df 79 f4 93 72 f3 b0 |..U..I.@|..y..r..|
|00000620| f7 b8 26 39 f2 d6 a5 31 | 0c 59 10 78 0f 77 47 22 |..&9...1|.Y.x.wG"|
|00000630| 13 06 80 60 f5 5f 4e f4 | 9f 54 f7 df 0d 00 00 06 |...`._N.|.T......|
|00000640| 00 00 09 00 00 16 01 93 | f4 13 0f 27 f4 9f 4e f4 |........|...'..N.|
|00000650| 9f 54 f2 70 41 85 f7 54 | c1 07 80 82 63 9f 2d 6a |.T.pA..T|....c.-j|
|00000660| 53 10 c5 91 02 b6 20 78 | 01 f7 81 cf 75 21 90 53 |S..... x|....u!.S|
|00000670| 08 26 42 f7 5e 07 30 2b | 10 f6 d6 33 14 08 e1 c7 |.&B.^.0+|...3....|
|00000680| d7 19 07 30 2b 10 f5 3f | 79 82 1f 6d 0f 52 18 5f |...0+..?|y..m.R._|
|00000690| 75 4c 10 f4 67 a1 06 39 | 0f 53 26 42 f7 5e 0f 4d |uL..g..9|.S&B.^.M|
|000006a0| 63 6f 67 14 0c b6 e2 14 | 80 5d 0f 49 38 79 10 f4 |cog.....|.].I8y..|
|000006b0| d6 c7 32 58 bf 2e 00 f2 | 7f 49 f4 ef 49 f5 4f 27 |..2X....|.I..I.O'|
|000006c0| 04 18 5f 75 4c 18 06 41 | 0c 5f 6d f6 d5 3a f7 90 |.._uL..A|._m..:..|
|000006d0| f7 74 72 21 30 78 06 88 | 1f 6d f6 2a f7 90 a6 3f |.tr!0x..|.m.*...?|
|000006e0| 67 f7 56 f6 71 f2 c0 f6 | 2f 75 20 c6 30 6a 85 0f |g.V.q...|/u .0j..|
|000006f0| 62 10 f7 74 72 21 30 73 | 0b 7f 67 bf 2d a1 f7 61 |b..tr!0s|..g.-..a|
|00000700| a0 a6 3f 67 f7 56 f6 71 | 80 8f 75 cb 06 80 f5 06 |..?g.V.q|..u.....|
|00000710| 8c 6a 06 39 0f 43 f2 e0 | 0f 46 5a a5 f7 77 3f 67 |.j.9.C..|.FZ..w?g|
|00000720| 07 80 2b 10 85 f7 54 c1 | 0d 54 06 08 7f 6d ea 1f |..+...T.|.T...m..|
|00000730| 2c 0f 62 f7 52 03 53 12 | b1 a1 88 0b 7f 67 ba f7 |,.b.R.S.|.....g..|
|00000740| 90 5f 62 35 f7 87 5f 75 | 8f 2c 0f 27 f4 9f 4e f4 |._b5.._u|.,.'..N.|
|00000750| 9f 54 f2 70 f7 74 72 21 | 30 73 0f 4d f5 0f 57 0f |.T.p.tr!|0s.M..W.|
|00000760| 50 68 c6 af 3a f0 d0 00 | 00 36 00 00 0c 00 00 14 |Ph..:...|.6......|
|00000770| 00 03 0c 00 00 16 00 09 | 0c 00 00 14 00 97 0c 02 |........|........|
|00000780| 00 14 00 a7 0c 00 00 14 | 00 aa 0c 00 00 16 00 b0 |........|........|
|00000790| 0c 00 00 14 01 75 0c 00 | 00 16 01 7b 0c 00 00 14 |.....u..|...{....|
|000007a0| 00 2b 00 00 00 00 00 00 | 00 00 00 00 0f 24 f3 4f |.+......|.....$.O|
|000007b0| 45 f3 9f 30 f3 b0 00 f7 | b0 f4 af 53 f5 20 f2 8f |E..0....|...S. ..|
|000007c0| 41 f3 0f 29 0f 7d f0 d0 | 00 06 00 00 09 00 00 16 |A..).}..|........|
|000007d0| 00 13 00 00 00 0f 48 f5 | 53 a5 cf 6b f2 8b f2 9f |......H.|S..k....|
|000007e0| 3b f0 d0 00 00 06 00 00 | 09 00 00 16 00 07 00 00 |;.......|........|
|000007f0| 00 f0 d0 00 00 06 00 00 | 09 00 00 16 00 00 00 14 |........|........|
|00000800| 00 01 0d 00 00 06 00 00 | 0c 00 00 14 00 36 20 20 |........|.....6 |
|00000810| 20 20 20 20 20 50 52 4f | 43 45 44 55 52 45 20 43 | PRO|CEDURE C|
|00000820| 61 6c 6c 58 43 4d 44 28 | 70 62 3a 20 58 43 4d 44 |allXCMD(|pb: XCMD|
|00000830| 50 74 72 3b 20 58 43 4d | 44 3a 20 48 61 6e 64 6c |Ptr; XCM|D: Handl|
|00000840| 65 29 3b 0d 00 06 00 00 | 09 00 00 16 00 1d 00 00 |e);.....|........|
|00000850| 00 0f 58 f4 3f 6d 9f 50 | 24 0f 3d 0f 5e f5 8f 43 |..X.?m.P|$.=.^..C|
|00000860| f6 d9 f4 2a 5c f6 bf 3b | f0 d0 00 06 00 00 09 00 |...*\..;|........|
|00000870| 00 16 01 68 00 00 00 00 | 00 01 0d 00 00 06 00 00 |...h....|........|
|00000880| 0c 00 00 14 02 65 54 68 | 65 72 65 20 69 73 20 61 |.....eTh|ere is a|
|00000890| 20 73 6f 6d 65 77 68 61 | 74 20 68 61 72 64 20 73 | somewha|t hard s|
|000008a0| 69 7a 65 20 6c 69 6d 69 | 74 20 6f 66 20 33 32 4b |ize limi|t of 32K|
|000008b0| 20 62 79 74 65 73 20 6f | 6e 20 63 6f 64 65 20 73 | bytes o|n code s|
|000008c0| 65 67 6d 65 6e 74 73 2c | 20 69 6e 63 6c 75 64 69 |egments,| includi|
|000008d0| 6e 67 20 27 43 4f 44 45 | 27 20 72 65 73 6f 75 72 |ng 'CODE|' resour|
|000008e0| 63 65 73 20 69 6e 20 61 | 6e 20 61 70 70 6c 69 63 |ces in a|n applic|
|000008f0| 61 74 69 6f 6e 20 61 6e | 64 20 73 74 61 6e 64 2d |ation an|d stand-|
|00000900| 61 6c 6f 6e 65 20 63 6f | 64 65 20 73 75 63 68 20 |alone co|de such |
|00000910| 61 73 20 27 58 43 4d 44 | 27 2c 20 27 46 4b 45 59 |as 'XCMD|', 'FKEY|
|00000920| 27 2c 20 27 44 52 56 52 | 27 2c 20 61 6e 64 20 27 |', 'DRVR|', and '|
|00000930| 57 44 45 46 27 20 72 65 | 73 6f 75 72 63 65 73 2e |WDEF' re|sources.|
|00000940| 20 20 54 68 69 73 20 6c | 69 6d 69 74 61 74 69 6f | This l|imitatio|
|00000950| 6e 20 65 78 69 73 74 73 | 20 62 65 63 61 75 73 65 |n exists| because|
|00000960| 20 4d 61 63 69 6e 74 6f | 73 68 20 63 6f 64 65 20 | Macinto|sh code |
|00000970| 68 61 73 20 74 6f 20 62 | 65 20 72 65 6c 6f 63 61 |has to b|e reloca|
|00000980| 74 61 62 6c 65 2c 20 72 | 65 71 75 69 72 69 6e 67 |table, r|equiring|
|00000990| 20 74 68 65 20 75 73 65 | 20 6f 66 20 50 43 2d 72 | the use| of PC-r|
|000009a0| 65 6c 61 74 69 76 65 20 | 69 6e 73 74 72 75 63 74 |elative |instruct|
|000009b0| 69 6f 6e 73 2e 20 20 55 | 6e 66 6f 72 74 75 6e 61 |ions. U|nfortuna|
|000009c0| 74 65 6c 79 2c 20 74 68 | 65 20 36 38 30 30 30 20 |tely, th|e 68000 |
|000009d0| 73 75 70 70 6f 72 74 73 | 20 6f 6e 6c 79 20 31 36 |supports| only 16|
|000009e0| 2d 62 69 74 20 73 69 67 | 6e 65 64 20 6f 66 66 73 |-bit sig|ned offs|
|000009f0| 65 74 73 20 66 6f 72 20 | 74 68 65 20 70 75 72 70 |ets for |the purp|
|00000a00| 6f 73 65 2e 20 20 54 68 | 65 73 65 20 6f 66 66 73 |ose. Th|ese offs|
|00000a10| 65 74 73 20 6c 69 6d 69 | 74 20 63 6f 64 65 20 74 |ets limi|t code t|
|00000a20| 6f 20 61 20 6d 61 78 69 | 6d 75 6d 20 6a 75 6d 70 |o a maxi|mum jump|
|00000a30| 20 6f 66 20 33 32 4b 20 | 62 79 74 65 73 20 65 69 | of 32K |bytes ei|
|00000a40| 74 68 65 72 20 66 6f 72 | 77 61 72 64 20 6f 72 20 |ther for|ward or |
|00000a50| 62 61 63 6b 77 61 72 64 | 2e 20 20 46 6f 72 20 61 |backward|. For a|
|00000a60| 20 70 72 6f 63 65 64 75 | 72 65 20 61 74 20 74 68 | procedu|re at th|
|00000a70| 65 20 62 65 67 69 6e 6e | 69 6e 67 20 6f 66 20 61 |e beginn|ing of a|
|00000a80| 20 63 6f 64 65 20 73 65 | 67 6d 65 6e 74 20 74 6f | code se|gment to|
|00000a90| 20 62 72 61 6e 63 68 20 | 74 6f 20 61 20 70 72 6f | branch |to a pro|
|00000aa0| 63 65 64 75 72 65 20 61 | 74 20 74 68 65 20 76 65 |cedure a|t the ve|
|00000ab0| 72 79 20 65 6e 64 2c 20 | 74 68 61 74 20 70 72 6f |ry end, |that pro|
|00000ac0| 63 65 64 75 72 65 20 63 | 61 6e 6e 6f 74 20 62 65 |cedure c|annot be|
|00000ad0| 20 6d 6f 72 65 20 74 68 | 61 6e 20 33 32 4b 20 62 | more th|an 32K b|
|00000ae0| 79 74 65 73 20 61 77 61 | 79 2e 0d 00 00 42 00 00 |ytes awa|y....B..|
|00000af0| 0c 00 00 14 00 4d 0c 00 | 00 16 00 53 0c 00 00 14 |.....M..|...S....|
|00000b00| 00 8d 0c 00 00 16 00 93 | 0c 00 00 14 00 95 0c 00 |........|........|
|00000b10| 00 16 00 9b 0c 00 00 14 | 00 9d 0c 00 00 16 00 a3 |........|........|
|00000b20| 0c 00 00 14 00 a9 0c 00 | 00 16 00 af 0c 00 00 14 |........|........|
|00000b30| 00 01 0d 00 00 06 00 00 | 0c 00 00 14 02 b2 54 68 |........|......Th|
|00000b40| 69 73 20 6c 69 6d 69 74 | 61 74 69 6f 6e 20 61 70 |is limit|ation ap|
|00000b50| 70 6c 69 65 73 20 74 6f | 20 61 6c 6c 20 63 6f 64 |plies to| all cod|
|00000b60| 65 20 73 65 67 6d 65 6e | 74 73 2c 20 69 6e 63 6c |e segmen|ts, incl|
|00000b70| 75 64 69 6e 67 20 74 68 | 6f 73 65 20 74 68 61 74 |uding th|ose that|
|00000b80| 20 63 6f 6d 70 72 69 73 | 65 20 61 6e 20 61 70 70 | compris|e an app|
|00000b90| 6c 69 63 61 74 69 6f 6e | 2e 20 20 41 6c 6c 20 74 |lication|. All t|
|00000ba0| 68 6f 73 65 20 77 68 69 | 7a 7a 79 20 37 39 30 4b |hose whi|zzy 790K|
|00000bb0| 20 77 6f 72 64 20 70 72 | 6f 63 65 73 73 6f 72 73 | word pr|ocessors|
|00000bc0| 20 61 6e 64 20 73 70 72 | 65 61 64 73 68 65 65 74 | and spr|eadsheet|
|00000bd0| 73 20 61 72 65 20 61 63 | 74 75 61 6c 6c 79 20 63 |s are ac|tually c|
|00000be0| 6f 6d 70 6f 73 65 64 20 | 6f 66 20 6d 61 6e 79 2c |omposed |of many,|
|00000bf0| 20 6d 61 6e 79 20 27 43 | 4f 44 45 27 20 72 65 73 | many 'C|ODE' res|
|00000c00| 6f 75 72 63 65 73 2c 20 | 61 6c 6c 20 6f 66 20 77 |ources, |all of w|
|00000c10| 68 69 63 68 20 61 72 65 | 20 73 6d 61 6c 6c 65 72 |hich are| smaller|
|00000c20| 20 74 68 61 6e 20 33 32 | 4b 2e 20 20 48 6f 77 65 | than 32|K. Howe|
|00000c30| 76 65 72 2c 20 73 70 65 | 63 69 61 6c 20 73 75 70 |ver, spe|cial sup|
|00000c40| 70 6f 72 74 20 69 73 20 | 61 76 61 69 6c 61 62 6c |port is |availabl|
|00000c50| 65 20 66 6f 72 20 61 70 | 70 6c 69 63 61 74 69 6f |e for ap|plicatio|
|00000c60| 6e 73 20 69 6e 20 74 68 | 65 20 66 6f 72 6d 20 6f |ns in th|e form o|
|00000c70| 66 20 61 20 6a 75 6d 70 | 20 74 61 62 6c 65 2e 20 |f a jump| table. |
|00000c80| 20 54 68 69 73 20 6a 75 | 6d 70 20 74 61 62 6c 65 | This ju|mp table|
|00000c90| 20 6b 65 65 70 73 20 74 | 72 61 63 6b 20 6f 66 20 | keeps t|rack of |
|00000ca0| 74 68 65 20 65 6e 74 72 | 79 20 70 6f 69 6e 74 73 |the entr|y points|
|00000cb0| 20 77 69 74 68 69 6e 20 | 74 68 65 73 65 20 63 6f | within |these co|
|00000cc0| 64 65 20 73 65 67 6d 65 | 6e 74 73 2c 20 73 6f 20 |de segme|nts, so |
|00000cd0| 74 68 61 74 20 74 68 65 | 72 65 20 69 73 20 61 20 |that the|re is a |
|00000ce0| 77 61 79 20 74 6f 20 62 | 72 61 6e 63 68 20 66 72 |way to b|ranch fr|
|00000cf0| 6f 6d 20 6f 6e 65 20 74 | 6f 20 61 6e 6f 74 68 65 |om one t|o anothe|
|00000d00| 72 2e 20 20 55 6e 66 6f | 72 74 75 6e 61 74 65 6c |r. Unfo|rtunatel|
|00000d10| 79 2c 20 79 6f 75 20 63 | 61 6e 6e 6f 74 20 64 6f |y, you c|annot do|
|00000d20| 20 74 68 65 20 73 61 6d | 65 20 74 68 69 6e 67 20 | the sam|e thing |
|00000d30| 66 6f 72 20 73 74 61 6e | 64 2d 61 6c 6f 6e 65 20 |for stan|d-alone |
|00000d40| 63 6f 64 65 20 72 65 73 | 6f 75 72 63 65 73 2c 20 |code res|ources, |
|00000d50| 61 73 20 74 68 65 20 73 | 79 73 74 65 6d 20 64 6f |as the s|ystem do|
|00000d60| 65 73 6e d5 74 20 73 75 | 70 70 6f 72 74 20 74 68 |esn.t su|pport th|
|00000d70| 65 20 75 73 65 20 6f 66 | 20 6d 6f 72 65 20 74 68 |e use of| more th|
|00000d80| 61 6e 20 6f 6e 65 20 6a | 75 6d 70 20 74 61 62 6c |an one j|ump tabl|
|00000d90| 65 2e 20 20 46 6f 72 20 | 6d 6f 72 65 20 69 6e 66 |e. For |more inf|
|00000da0| 6f 72 6d 61 74 69 6f 6e | 20 6f 6e 20 74 68 65 20 |ormation| on the |
|00000db0| 6a 75 6d 70 20 74 61 62 | 6c 65 2c 20 73 65 65 20 |jump tab|le, see |
|00000dc0| 49 6e 73 69 64 65 20 4d | 61 63 69 6e 74 6f 73 68 |Inside M|acintosh|
|00000dd0| 2c 20 56 6f 6c 75 6d 65 | 49 49 2c 20 54 68 65 20 |, Volume|II, The |
|00000de0| 53 65 67 6d 65 6e 74 20 | 4c 6f 61 64 65 72 2e 0d |Segment |Loader..|
|00000df0| 00 1e 00 00 0c 00 00 14 | 00 b8 0c 00 00 16 00 be |........|........|
|00000e00| 0c 00 00 14 02 82 0c 02 | 00 14 02 92 0c 00 00 14 |........|........|
|00000e10| 00 01 0d ff 00 06 00 00 | 0c 00 00 14 01 c4 54 68 |........|......Th|
|00000e20| 65 20 72 65 61 73 6f 6e | 20 77 68 79 20 74 68 69 |e reason| why thi|
|00000e30| 73 20 33 32 4b 20 6c 69 | 6d 69 74 20 69 73 20 6f |s 32K li|mit is o|
|00000e40| 6e 6c 79 20 61 20 d2 73 | 6f 6d 65 77 68 61 74 20 |nly a .s|omewhat |
|00000e50| 68 61 72 64 d3 20 6c 69 | 6d 69 74 20 69 73 20 62 |hard. li|mit is b|
|00000e60| 65 63 61 75 73 65 2c 20 | 69 66 20 79 6f 75 20 61 |ecause, |if you a|
|00000e70| 72 65 20 72 65 61 6c 6c | 79 20 64 65 74 65 72 6d |re reall|y determ|
|00000e80| 69 6e 65 64 2c 20 79 6f | 75 20 63 61 6e 20 62 72 |ined, yo|u can br|
|00000e90| 65 61 6b 20 74 68 69 73 | 20 6c 69 6d 69 74 2e 20 |eak this| limit. |
|00000ea0| 20 49 66 20 79 6f 75 20 | 63 61 6e 20 77 72 69 74 | If you |can writ|
|00000eb0| 65 20 79 6f 75 72 20 63 | 6f 64 65 20 69 6e 20 73 |e your c|ode in s|
|00000ec0| 75 63 68 20 61 20 77 61 | 79 20 74 68 61 74 20 79 |uch a wa|y that y|
|00000ed0| 6f 75 20 64 6f 6e d5 74 | 20 65 76 65 72 20 6e 65 |ou don.t| ever ne|
|00000ee0| 65 64 20 74 6f 20 6d 61 | 6b 65 20 61 20 6a 75 6d |ed to ma|ke a jum|
|00000ef0| 70 20 74 68 61 74 20 69 | 73 20 6c 6f 6e 67 65 72 |p that i|s longer|
|00000f00| 20 74 68 61 6e 20 33 32 | 4b 20 62 79 74 65 73 2c | than 32|K bytes,|
|00000f10| 20 74 68 65 6e 20 79 6f | 75 20 73 68 6f 75 6c 64 | then yo|u should|
|00000f20| 20 62 65 20 61 62 6c 65 | 20 74 6f 20 67 65 74 20 | be able| to get |
|00000f30| 61 77 61 79 20 77 69 74 | 68 20 73 74 72 65 74 63 |away wit|h stretc|
|00000f40| 68 69 6e 67 20 74 68 65 | 20 6c 69 6d 69 74 2e 20 |hing the| limit. |
|00000f50| 20 46 6f 72 20 6d 6f 72 | 65 20 6f 66 20 74 68 65 | For mor|e of the|
|00000f60| 20 67 6f 72 79 20 64 65 | 74 61 69 6c 73 2c 20 73 | gory de|tails, s|
|00000f70| 65 65 20 74 68 65 20 73 | 65 63 74 69 6f 6e 20 d2 |ee the s|ection .|
|00000f80| 53 65 67 6d 65 6e 74 69 | 6e 67 20 61 6e 64 20 74 |Segmenti|ng and t|
|00000f90| 68 65 20 4a 75 6d 70 20 | 54 61 62 6c 65 d3 20 69 |he Jump |Table. i|
|00000fa0| 6e 20 54 65 63 68 6e 69 | 63 61 6c 20 4e 6f 74 65 |n Techni|cal Note|
|00000fb0| 20 23 32 34 30 2c 20 55 | 73 69 6e 67 20 4d 50 57 | #240, U|sing MPW|
|00000fc0| 20 66 6f 72 20 4e 6f 6e | 2d 4d 61 63 69 6e 74 6f | for Non|-Macinto|
|00000fd0| 73 68 20 36 38 30 30 30 | 20 53 79 73 74 65 6d 73 |sh 68000| Systems|
|00000fe0| 2e 0d 00 06 00 00 0c 00 | 00 14 00 01 0d 0a 00 06 |........|........|
|00000ff0| 00 00 0c 00 00 14 00 37 | 00 00 00 0b 0f 3a f3 d0 |.......7|.....:..|
|00001000| f4 71 2f 31 f4 e6 f6 d1 | 9f 52 18 5f 75 4c 1f 28 |.q/1....|.R._uL.(|
|00001010| f2 7f 58 f4 3f 4d f4 4f | 27 f2 c0 f2 7f 58 f5 32 |..X.?M.O|'....X.2|
|00001020| 47 3f 67 f5 77 92 bf 27 | f2 9f 3b f0 d0 00 00 06 |G?g.w..'|..;.....|
|00001030| 00 00 09 00 00 16 11 01 | ff 96 00 2d 43 61 6c 6c |........|...-Call|
|00001040| 69 6e 67 20 53 74 61 6e | 64 2d 41 6c 6f 6e 65 20 |ing Stan|d-Alone |
|00001050| 43 6f 64 65 20 46 72 6f | 6d 20 41 6e 20 41 70 70 |Code Fro|m An App|
|00001060| 6c 69 63 61 74 69 6f 6e | 0d ff 00 06 00 00 0e 01 |lication|........|
|00001070| 00 14 00 01 0d ff 00 06 | 00 00 0c 00 00 14 00 fb |........|........|
|00001080| 41 73 73 75 6d 65 20 74 | 68 61 74 20 79 6f 75 20 |Assume t|hat you |
|00001090| 61 72 65 20 77 72 69 74 | 69 6e 67 20 61 6e 20 61 |are writ|ing an a|
|000010a0| 70 70 6c 69 63 61 74 69 | 6f 6e 20 61 6e 64 20 77 |pplicati|on and w|
|000010b0| 6f 75 6c 64 20 6c 69 6b | 65 20 74 6f 20 73 75 70 |ould lik|e to sup|
|000010c0| 70 6f 72 74 20 65 78 74 | 65 72 6e 61 6c 20 72 6f |port ext|ernal ro|
|000010d0| 75 74 69 6e 65 73 20 69 | 6e 20 74 68 65 20 66 6f |utines i|n the fo|
|000010e0| 72 6d 20 6f 66 20 73 74 | 61 6e 64 2d 61 6c 6f 6e |rm of st|and-alon|
|000010f0| 65 20 63 6f 64 65 2e 20 | 20 41 70 70 6c 69 63 61 |e code. | Applica|
|00001100| 74 69 6f 6e 73 20 6c 69 | 6b 65 20 48 79 70 65 72 |tions li|ke Hyper|
|00001110| 43 61 72 64 20 61 6e 64 | 20 41 70 70 6c 65 20 46 |Card and| Apple F|
|00001120| 69 6c 65 20 45 78 63 68 | 61 6e 67 65 20 73 75 70 |ile Exch|ange sup|
|00001130| 70 6f 72 74 20 73 75 63 | 68 20 61 20 6d 65 63 68 |port suc|h a mech|
|00001140| 61 6e 69 73 6d 2e 20 20 | 48 6f 77 20 64 6f 20 79 |anism. |How do y|
|00001150| 6f 75 20 67 6f 20 61 62 | 6f 75 74 20 70 75 74 74 |ou go ab|out putt|
|00001160| 69 6e 67 20 69 6e 20 74 | 68 69 73 20 66 75 6e 63 |ing in t|his func|
|00001170| 74 69 6f 6e 61 6c 69 74 | 79 3f 0d ff 00 06 00 00 |tionalit|y?......|
|00001180| 0c 00 00 14 00 01 0d ff | 00 06 00 00 0c 00 00 14 |........|........|
|00001190| 00 ce 54 68 65 20 66 69 | 72 73 74 20 74 68 69 6e |..The fi|rst thin|
|000011a0| 67 20 74 6f 20 64 6f 20 | 69 73 20 65 73 74 61 62 |g to do |is estab|
|000011b0| 6c 69 73 68 20 73 6f 6d | 65 20 73 74 61 6e 64 61 |lish som|e standa|
|000011c0| 72 64 20 6d 65 61 6e 73 | 20 66 6f 72 20 63 6f 6d |rd means| for com|
|000011d0| 6d 75 6e 69 63 61 74 69 | 6e 67 2e 20 20 54 68 69 |municati|ng. Thi|
|000011e0| 73 20 69 73 20 73 68 6f | 77 6e 20 77 69 74 68 20 |s is sho|wn with |
|000011f0| 48 79 70 65 72 43 61 72 | 64 20 27 58 43 4d 44 27 |HyperCar|d 'XCMD'|
|00001200| 20 72 65 73 6f 75 72 63 | 65 73 2c 20 77 68 65 72 | resourc|es, wher|
|00001210| 65 20 61 20 63 6c 65 61 | 72 6c 79 20 64 65 66 69 |e a clea|rly defi|
|00001220| 6e 65 64 20 70 61 72 61 | 6d 65 74 65 72 20 62 6c |ned para|meter bl|
|00001230| 6f 63 6b 20 69 73 20 70 | 61 73 73 65 64 20 62 65 |ock is p|assed be|
|00001240| 74 77 65 65 6e 20 48 79 | 70 65 72 43 61 72 64 20 |tween Hy|perCard |
|00001250| 61 6e 64 20 74 68 65 20 | 27 58 43 4d 44 27 2e 0d |and the |'XCMD'..|
|00001260| 00 1e 00 00 0c 00 00 14 | 00 68 0c 00 00 16 00 6e |........|.h.....n|
|00001270| 0c 00 00 14 00 c6 0c 00 | 00 16 00 cc 0c 00 00 14 |........|........|
|00001280| 00 32 00 00 00 0f 50 f5 | 2f 4f f4 3f 45 f4 4f 55 |.2....P.|/O.?E.OU|
|00001290| f5 2f 45 0f 58 f5 32 47 | 3f 67 f5 77 92 bf 28 e6 |./E.X.2G|?g.w..(.|
|000012a0| 46 f6 df 50 24 f3 a0 f5 | 8f 43 f6 d9 f5 02 4f 29 |F..P$...|.C....O)|
|000012b0| f3 bf 0d 00 00 06 00 00 | 09 00 00 16 00 00 00 06 |........|........|
|000012c0| 00 00 0c 00 00 14 4f 52 | 44 0d 00 06 00 00 09 00 |......OR|D.......|
|000012d0| 00 16 00 25 20 20 20 20 | 20 20 20 20 20 20 20 20 |...% | |
|000012e0| 20 20 20 70 61 72 61 6d | 43 6f 75 6e 74 3a 20 20 | param|Count: |
|000012f0| 49 4e 54 45 47 45 52 3b | 0d 00 00 06 00 00 09 00 |INTEGER;|........|
|00001300| 00 16 00 35 20 20 20 20 | 20 20 20 20 20 20 20 20 |...5 | |
|00001310| 20 20 20 70 61 72 61 6d | 73 3a 20 20 20 20 20 20 | param|s: |
|00001320| 41 52 52 41 59 20 5b 31 | 2e 2e 31 36 5d 20 4f 46 |ARRAY [1|..16] OF|
|00001330| 20 48 61 6e 64 6c 65 3b | 0d 00 00 06 00 00 09 00 | Handle;|........|
|00001340| 00 16 00 24 20 20 20 20 | 20 20 20 20 20 20 20 20 |...$ | |
|00001350| 20 20 20 72 65 74 75 72 | 6e 56 61 6c 75 65 3a 20 | retur|nValue: |
|00001360| 48 61 6e 64 6c 65 3b 0d | 00 06 00 00 09 00 00 16 |Handle;.|........|
|00001370| 00 25 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.% | |
|00001380| 20 70 61 73 73 46 6c 61 | 67 3a 20 20 20 20 42 4f | passFla|g: BO|
|00001390| 4f 4c 45 41 4e 3b 0d 48 | 00 06 00 00 09 00 00 16 |OLEAN;.H|........|
|000013a0| 00 4c 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.L | |
|000013b0| 20 65 6e 74 72 79 50 6f | 69 6e 74 3a 20 20 50 72 | entryPo|int: Pr|
|000013c0| 6f 63 50 74 72 3b 20 20 | 20 20 20 20 20 20 20 20 |ocPtr; | |
|000013d0| 20 20 7b 74 6f 20 63 61 | 6c 6c 20 62 61 63 6b 20 | {to ca|ll back |
|000013e0| 74 6f 20 48 79 70 65 72 | 43 61 72 64 7d 0d 00 06 |to Hyper|Card}...|
|000013f0| 00 00 09 00 00 16 00 25 | 20 20 20 20 20 20 20 20 |.......%| |
|00001400| 20 20 20 20 20 20 20 72 | 65 71 75 65 73 74 3a 20 | r|equest: |
|00001410| 20 20 20 20 49 4e 54 45 | 47 45 52 3b 0d ff 00 06 | INTE|GER;....|
|00001420| 00 00 09 00 00 16 00 25 | 20 20 20 20 20 20 20 20 |.......%| |
|00001430| 20 20 20 20 20 20 20 72 | 65 73 75 6c 74 3a 20 20 | r|esult: |
|00001440| 20 20 20 20 49 4e 54 45 | 47 45 52 3b 0d d3 00 06 | INTE|GER;....|
|00001450| 00 00 09 00 00 16 00 35 | 20 20 20 20 20 20 20 20 |.......5| |
|00001460| 20 20 20 20 20 20 20 69 | 6e 41 72 67 73 3a 20 20 | i|nArgs: |
|00001470| 20 20 20 20 41 52 52 41 | 59 20 5b 31 2e 2e 38 5d | ARRA|Y [1..8]|
|00001480| 20 4f 46 20 4c 4f 4e 47 | 49 4e 54 3b 0d d6 00 06 | OF LONG|INT;....|
|00001490| 00 00 09 00 00 16 00 35 | 20 20 20 20 20 20 20 20 |.......5| |
|000014a0| 20 20 20 20 20 20 20 6f | 75 74 41 72 67 73 3a 20 | o|utArgs: |
|000014b0| 20 20 20 20 41 52 52 41 | 59 20 5b 31 2e 2e 34 5d | ARRA|Y [1..4]|
|000014c0| 20 4f 46 20 4c 4f 4e 47 | 49 4e 54 3b 0d e6 00 06 | OF LONG|INT;....|
|000014d0| 00 00 09 00 00 16 00 14 | 20 20 20 20 20 20 20 20 |........| |
|000014e0| 20 20 20 20 20 20 20 45 | 4e 44 3b 0d 00 06 00 00 | E|ND;.....|
|000014f0| 09 00 00 16 00 27 f5 74 | 72 21 30 f6 2f 79 f3 af |.....'.t|r!0./y..|
|00001500| 09 f4 a7 f6 d0 f4 64 71 | 9a 63 91 4f 09 f4 d6 4c |......dq|.c.O...L|
|00001510| b0 f3 1f 39 f3 8f 37 f0 | d0 00 00 06 00 00 0c 00 |...9..7.|........|
|00001520| 00 14 00 01 0d ff 00 06 | 00 00 0c 00 00 14 00 01 |........|........|
|00001530| 0d 00 00 06 00 00 0c 00 | 00 14 00 01 0d 02 00 06 |........|........|
|00001540| 00 00 0c 00 00 14 0c 00 | 00 14 00 8e 57 68 65 6e |........|....When|
|00001550| 20 48 79 70 65 72 43 61 | 72 64 20 63 61 6c 6c 73 | HyperCa|rd calls|
|00001560| 20 61 6e 20 27 58 43 4d | 44 27 2c 20 69 74 20 70 | an 'XCM|D', it p|
|00001570| 61 73 73 65 73 20 61 20 | 70 6f 69 6e 74 65 72 20 |asses a |pointer |
|00001580| 74 6f 20 74 68 69 73 20 | 70 61 72 61 6d 65 74 65 |to this |paramete|
|00001590| 72 20 62 6c 6f 63 6b 2e | 20 20 54 68 65 20 65 6e |r block.| The en|
|000015a0| 74 72 79 20 70 6f 69 6e | 74 20 74 6f 20 73 75 63 |try poin|t to suc|
|000015b0| 68 20 61 6e 20 27 58 43 | 4d 44 27 20 63 6f 75 6c |h an 'XC|MD' coul|
|000015c0| 64 20 62 65 20 64 65 63 | 6c 61 72 65 64 20 61 73 |d be dec|lared as|
|000015d0| 20 66 6f 6c 6c 6f 77 73 | 3a 0d 00 1e 00 00 0c 00 | follows|:.......|
|000015e0| 00 14 00 18 0c 00 00 16 | 00 1e 0c 00 00 14 00 69 |........|.......i|
|000015f0| 0c 00 00 16 00 6f 0c 00 | 00 14 00 27 f5 21 f7 67 |.....o..|...'.!.g|
|00001600| 81 90 f6 2f 79 f3 af 09 | f4 b1 72 b0 f5 25 aa 73 |.../y...|..r..%.s|
|00001610| f0 9f 46 1f 62 4f 75 64 | f7 90 f3 1f 39 f3 9f 30 |..F.bOud|....9..0|
|00001620| f0 d0 00 06 00 00 0c 00 | 00 14 00 25 f2 3f 31 f3 |........|...%.?1.|
|00001630| 1f 30 f3 af 09 f4 df 50 | f5 7f 3a 00 f5 74 72 73 |.0.....P|..:..trs|
|00001640| f6 70 f5 32 63 9f 2d f4 | 1a 53 10 f4 35 91 f0 d0 |.p.2c.-.|.S..5...|
|00001650| 00 06 00 00 12 01 00 14 | 00 09 01 dd 00 00 00 00 |........|........|
|00001660| 00 09 02 07 02 07 02 07 | 02 07 02 07 02 07 02 07 |........|........|
|00001670| 02 07 02 07 02 07 02 07 | 02 07 00 01 0d 00 00 06 |........|........|
|00001680| 00 00 0c 00 00 14 00 01 | 0d 00 00 06 00 00 0c 00 |........|........|
|00001690| 00 14 00 b7 54 6f 20 63 | 61 6c 6c 20 74 68 65 20 |....To c|all the |
|000016a0| 27 58 43 4d 44 27 2c 20 | 79 6f 75 20 6e 65 65 64 |'XCMD', |you need|
|000016b0| 20 74 6f 20 6c 6f 61 64 | 20 69 74 20 69 6e 74 6f | to load| it into|
|000016c0| 20 6d 65 6d 6f 72 79 2c | 20 6c 6f 63 6b 20 69 74 | memory,| lock it|
|000016d0| 20 64 6f 77 6e 2c 20 66 | 69 6c 6c 20 69 6e 20 61 | down, f|ill in a|
|000016e0| 20 70 61 72 61 6d 65 74 | 65 72 20 62 6c 6f 63 6b | paramet|er block|
|000016f0| 2c 20 61 6e 64 20 74 68 | 65 6e 20 63 61 6c 6c 20 |, and th|en call |
|00001700| 74 68 65 20 27 58 43 4d | 44 27 2e 20 20 57 68 65 |the 'XCM|D'. Whe|
|00001710| 6e 20 79 6f 75 20 61 72 | 65 20 64 6f 6e 65 2c 20 |n you ar|e done, |
|00001720| 79 6f 75 20 6e 65 65 64 | 20 74 6f 20 72 65 6d 6f |you need| to remo|
|00001730| 76 65 20 74 68 65 20 27 | 58 43 4d 44 27 20 66 72 |ve the '|XCMD' fr|
|00001740| 6f 6d 20 6d 65 6d 6f 72 | 79 3a 0d 00 00 2a 00 00 |om memor|y:...*..|
|00001750| 0c 00 00 14 00 0c 0c 00 | 00 16 00 12 0c 00 00 14 |........|........|
|00001760| 00 70 0c 00 00 16 00 76 | 0c 00 00 14 00 a3 0c 00 |.p.....v|........|
|00001770| 00 16 00 a9 0c 00 00 14 | 00 3f 01 dd 03 00 00 00 |........|.?......|
|00001780| 00 09 02 07 02 07 02 07 | 02 07 02 07 02 07 02 07 |........|........|
|00001790| 02 07 02 07 02 07 02 07 | 02 07 00 09 01 dd 03 01 |........|........|
|000017a0| 00 00 00 09 01 c2 02 07 | 02 07 00 00 00 00 00 00 |........|........|
|000017b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 09 01 dd |........|........|
|000017c0| 03 00 00 00 00 09 02 07 | 02 07 02 07 02 07 02 07 |........|........|
|000017d0| 02 07 02 07 02 07 02 07 | 02 07 02 07 02 07 0d 00 |........|........|
|000017e0| 00 06 00 00 09 00 00 16 | 00 11 20 20 20 20 20 20 |........|.. |
|000017f0| 20 48 4c 6f 63 6b 28 68 | 29 3b 0d 00 00 06 00 00 | HLock(h|);......|
|00001800| 09 00 00 16 00 24 20 20 | 20 20 20 20 20 57 49 54 |.....$ | WIT|
|00001810| 48 20 70 61 72 61 6d 65 | 74 65 72 42 6c 6f 63 6b |H parame|terBlock|
|00001820| 20 44 4f 20 42 45 47 49 | 4e 0d 00 06 00 00 09 00 | DO BEGI|N.......|
|00001830| 00 16 00 1a 20 20 20 20 | 20 20 20 20 20 20 20 3c |.... | <|
|00001840| 20 66 69 6c 6c 20 69 74 | 20 69 6e 20 3e 0d 00 06 | fill it| in >...|
|00001850| 00 00 09 00 00 16 00 0c | 20 20 20 20 20 20 20 45 |........| E|
|00001860| 4e 44 3b 0d 00 06 00 00 | 09 00 00 16 00 25 20 20 |ND;.....|.....% |
|00001870| 20 20 20 20 20 43 61 6c | 6c 58 43 4d 44 28 40 70 | Cal|lXCMD(@p|
|00001880| 61 72 61 6d 65 74 65 72 | 42 6c 6f 63 6b 2c 20 68 |arameter|Block, h|
|00001890| 29 3b 0d ff 00 06 00 00 | 09 00 00 16 00 01 0d 00 |);......|........|
|000018a0| 00 06 00 00 0c 00 00 14 | 00 1a 20 20 20 20 20 20 |........|.. |
|000018b0| 20 58 43 6d 64 42 6c 6f | 63 6b 20 3d 20 52 45 43 | XCmdBlo|ck = REC|
|000018c0| 4f 52 44 0d 00 06 00 00 | 09 00 00 16 00 11 f5 37 |ORD.....|.......7|
|000018d0| f7 a1 0f 44 51 80 f4 d6 | 22 14 f0 d0 00 06 00 00 |...DQ...|".......|
|000018e0| 0e 01 00 14 0c 00 00 14 | 01 59 43 61 6c 6c 58 43 |........|.YCallXC|
|000018f0| 4d 44 20 69 73 20 73 6f | 6d 65 20 69 6e 2d 6c 69 |MD is so|me in-li|
|00001900| 6e 65 20 63 6f 64 65 20 | 74 68 61 74 20 74 61 6b |ne code |that tak|
|00001910| 65 73 20 74 68 65 20 48 | 61 6e 64 6c 65 20 68 20 |es the H|andle h |
|00001920| 61 6e 64 20 65 78 65 63 | 75 74 65 73 20 74 68 65 |and exec|utes the|
|00001930| 20 6e 65 63 65 73 73 61 | 72 79 20 6d 61 63 68 69 | necessa|ry machi|
|00001940| 6e 65 20 6c 61 6e 67 75 | 61 67 65 20 63 6f 6d 6d |ne langu|age comm|
|00001950| 61 6e 64 73 20 74 6f 20 | 6a 75 6d 70 20 74 6f 20 |ands to |jump to |
|00001960| 69 74 2e 20 20 49 74 20 | 64 6f 65 73 20 74 68 69 |it. It |does thi|
|00001970| 73 20 62 79 20 74 61 6b | 69 6e 67 20 74 68 65 20 |s by tak|ing the |
|00001980| 68 61 6e 64 6c 65 20 6f | 66 66 20 6f 66 20 74 68 |handle o|ff of th|
|00001990| 65 20 73 74 61 63 6b 2c | 20 74 75 72 6e 69 6e 67 |e stack,| turning|
|000019a0| 20 69 74 20 69 6e 74 6f | 20 61 20 70 6f 69 6e 74 | it into| a point|
|000019b0| 65 72 20 74 6f 20 74 68 | 65 20 73 74 61 6e 64 2d |er to th|e stand-|
|000019c0| 61 6c 6f 6e 65 20 63 6f | 64 65 2c 20 61 6e 64 20 |alone co|de, and |
|000019d0| 70 65 72 66 6f 72 6d 69 | 6e 67 20 61 20 4a 53 52 |performi|ng a JSR|
|000019e0| 20 74 6f 20 69 74 2e 20 | 20 49 6e 20 74 68 69 73 | to it. | In this|
|000019f0| 20 77 61 79 2c 20 74 68 | 65 20 70 61 72 61 6d 65 | way, th|e parame|
|00001a00| 74 65 72 20 62 6c 6f 63 | 6b 20 69 73 20 6c 65 66 |ter bloc|k is lef|
|00001a10| 74 20 6f 6e 20 74 68 65 | 20 73 74 61 63 6b 20 66 |t on the| stack f|
|00001a20| 6f 72 20 74 68 65 20 73 | 74 61 6e 64 2d 61 6c 6f |or the s|tand-alo|
|00001a30| 6e 65 20 63 6f 64 65 20 | 74 6f 20 61 63 63 65 73 |ne code |to acces|
|00001a40| 73 3a 0d ff 00 24 00 00 | 0c 00 00 16 00 08 0c 00 |s:...$..|........|
|00001a50| 00 14 00 34 0c 00 00 16 | 00 35 0c 00 00 14 00 f3 |...4....|.5......|
|00001a60| 0c 00 00 16 00 f6 0c 00 | 00 14 00 01 0d 03 00 06 |........|........|
|00001a70| 00 00 0c 00 00 14 00 01 | 0d ff 00 06 00 00 0c 00 |........|........|
|00001a80| 00 14 00 01 0d ff 00 06 | 00 00 0c 00 00 14 00 00 |........|........|
|00001a90| 00 00 00 41 03 e8 00 0d | 4d 41 47 49 43 50 49 43 |...A....|MAGICPIC|
|00001aa0| 11 01 ff 96 00 09 01 dd | 00 00 00 00 00 09 02 07 |........|........|
|00001ab0| 02 07 02 07 02 07 02 07 | 02 07 02 07 02 07 02 07 |........|........|
|00001ac0| 02 07 02 07 02 07 00 01 | 0d ff 00 06 00 00 0c 00 |........|........|
|00001ad0| 00 14 00 00 09 00 00 16 | 00 32 20 20 20 20 20 20 |........|.2 |
|00001ae0| 20 20 20 20 20 20 20 20 | 49 4e 4c 49 4e 45 20 24 | |INLINE $|
|00001af0| 32 30 35 46 2c 20 20 20 | 7b 20 4d 4f 56 45 2e 4c |205F, |{ MOVE.L|
|00001b00| 20 28 41 37 29 2b 2c 41 | 30 20 7d 0d 00 06 00 00 | (A7)+,A|0 }.....|
|00001b10| 09 00 00 16 00 31 20 20 | 20 20 20 20 20 20 20 20 |.....1 | |
|00001b20| 20 20 20 20 20 20 20 20 | 20 20 20 24 32 30 35 30 | | $2050|
|00001b30| 2c 20 20 20 7b 20 4d 4f | 56 45 2e 4c 20 28 41 30 |, { MO|VE.L (A0|
|00001b40| 29 2c 41 30 20 7d 0d ff | 00 06 00 00 09 00 00 16 |),A0 }..|........|
|00001b50| 00 09 01 dd 03 00 00 00 | 00 09 02 07 02 07 02 07 |........|........|
|00001b60| 02 07 02 07 02 07 02 07 | 02 07 02 07 02 07 02 07 |........|........|
|00001b70| 02 07 00 00 ff d6 00 0b | 03 be 00 0d 4d 41 47 49 |........|....MAGI|
|00001b80| 43 50 49 43 11 01 ff 69 | 00 01 0d 01 00 06 00 00 |CPIC...i|........|
|00001b90| 0c 00 00 14 00 01 0d 04 | 00 06 00 00 0c 00 00 14 |........|........|
|00001ba0| 01 44 01 68 00 00 00 00 | 00 01 0d ff 00 06 00 00 |.D.h....|........|
|00001bb0| 0c 00 00 14 00 09 01 dd | 03 00 00 00 00 09 02 07 |........|........|
|00001bc0| 02 07 02 07 02 07 02 07 | 02 07 02 07 02 07 02 07 |........|........|
|00001bd0| 02 07 02 07 02 07 00 09 | 01 dd 00 00 00 00 00 09 |........|........|
|00001be0| 02 07 02 07 02 07 02 07 | 02 07 02 07 02 07 02 07 |........|........|
|00001bf0| 02 07 02 07 02 07 02 07 | 00 1c 57 72 69 74 69 6e |........|..Writin|
|00001c00| 67 20 61 6e 20 27 49 4e | 49 54 27 20 69 6e 20 50 |g an 'IN|IT' in P|
|00001c10| 61 73 63 61 6c 0d 00 06 | 00 00 0e 01 00 14 00 01 |ascal...|........|
|00001c20| 0d ff 00 06 00 00 0c 00 | 00 14 01 8e f4 3b 63 f6 |........|.....;c.|
|00001c30| 71 80 87 3c 10 f4 d6 4c | b0 f3 1f 39 f3 8f 38 f3 |q..<...L|...9..8.|
|00001c40| a0 0f 41 99 19 06 03 52 | 10 6f 62 5f 75 20 2b 10 |..A....R|.ob_u +.|
|00001c50| f3 3f 32 f4 b0 87 f7 a1 | 0a 7f 6d 72 05 30 82 63 |.?2.....|..mr.0.c|
|00001c60| 9f 2d 6a 53 10 c5 91 04 | 18 5f 75 4c 18 f3 b0 73 |.-jS....|._uL...s|
|00001c70| ca f7 59 19 06 30 1f 78 | 6f 6d ea 10 5d 0b 5f 77 |..Y..0.x|om..]._w|
|00001c80| 02 50 a5 69 06 39 01 f7 | 81 cf 75 21 08 26 39 f2 |.P.i.9..|..u!.&9.|
|00001c90| d6 a5 31 0c 59 10 d4 5f | 6d 06 30 6e ea 7c 62 75 |..1.Y.._|m.0n.|bu|
|00001ca0| 3f 3b 06 39 06 99 19 04 | 1d 14 13 c1 80 25 0f 54 |?;.9....|.....%.T|
|00001cb0| 1c b3 7c 6a 0f 4e 52 10 | f2 3f 32 f3 5f 36 f2 c0 |..|j.NR.|.?2._6..|
|00001cc0| f4 7a 5f 62 6a 80 73 0f | 53 26 39 f2 df 41 a5 31 |.z_bj.s.|S&9..A.1|
|00001cd0| 0f 43 59 1f 2c 0c 53 c1 | 43 73 f6 70 2b 10 f7 58 |.CY.,.S.|Cs.p+..X|
|00001ce0| 10 5d 0f 67 a5 f6 26 a0 | f7 66 47 6f 62 a1 8f 2c |.].g..&.|.fGob..,|
|00001cf0| 06 39 0f 54 1c b3 7c 6a | 0f 4e 52 10 f2 3f 32 f3 |.9.T..|j|.NR..?2.|
|00001d00| 4f 30 f2 c0 f5 58 73 f6 | 70 f4 df 50 f5 70 d5 40 |O0...Xs.|p..P.p.@|
|00001d10| f4 e5 3f 2d f4 d6 c7 32 | 58 b0 f3 6f 38 f3 0f 30 |..?-...2|X..o8..0|
|00001d20| f3 00 f5 3f 79 82 1f 6d | 8f 2c 0c 53 c1 43 73 f6 |...?y..m|.,.S.Cs.|
|00001d30| 70 f6 24 16 f6 b7 3f 67 | 02 b1 0f 33 f3 2f 4b 0a |p.$...?g|...3./K.|
|00001d40| 7f 6d 72 f2 ef 0d 00 0c | 00 00 0c 01 00 14 00 19 |.mr.....|........|
|00001d50| 0c 00 00 14 00 00 00 09 | 00 55 01 dd 01 2e 00 07 |........|.U......|
|00001d60| 00 07 00 5c 01 ec 11 01 | a0 00 82 a0 00 8c a0 00 |...\....|........|
|00001d70| 8c a1 00 96 00 06 05 00 | 00 00 02 4d a1 00 9a 00 |........|...M....|
|00001d80| 08 00 06 00 00 00 51 00 | 00 a0 00 98 01 00 0a 00 |......Q.|........|
|00001d90| 07 00 07 00 5c 01 ec 03 | 00 14 0d 00 18 2b 0e 1d |....\...|.....+..|
|00001da0| 0a 4d 61 63 69 6e 74 6f | 73 68 0d a0 00 99 a1 00 |.Macinto|sh......|
|00001db0| 9a 00 08 ff ee 00 00 00 | 51 00 00 a0 00 98 2a 18 |........|Q.....*.|
|00001dc0| 0f 54 65 63 68 6e 69 63 | 61 6c 20 4e 6f 74 65 73 |.Technic|al Notes|
|00001dd0| a0 00 99 a0 00 97 a1 00 | 96 00 06 05 00 00 00 02 |........|........|
|00001de0| 4d a1 00 9a 00 08 ff fc | 00 00 00 6c 00 00 a0 00 |M.......|...l....|
|00001df0| 98 0d 00 12 2b f1 1f 1b | 44 65 76 65 6c 6f 70 65 |....+...|Develope|
|00001e00| 72 20 54 65 63 68 6e 69 | 63 61 6c 20 53 75 70 70 |r Techni|cal Supp|
|00001e10| 6f 72 74 a0 00 99 a0 00 | 97 07 00 02 00 02 20 00 |ort.....|...... .|
|00001e20| 3f 00 09 00 3f 01 d9 a0 | 00 8d a0 00 8c a1 00 96 |?...?...|........|
|00001e30| 00 06 05 00 00 00 02 4d | a1 00 9a 00 08 ff ef 00 |.......M|........|
|00001e40| 00 00 1b 00 00 a0 00 98 | 0d 00 30 28 00 37 01 b2 |........|..0(.7..|
|00001e50| 01 f0 a0 00 99 a0 00 97 | a1 00 96 00 06 05 00 00 |........|........|
|00001e60| 00 02 4d a1 00 9a 00 08 | ff fe 00 00 00 06 00 00 |..M.....|........|
|00001e70| a0 00 98 0d 00 09 29 22 | 01 a8 a0 00 99 a0 00 97 |......)"|........|
|00001e80| a0 00 8d a0 00 8d a0 00 | 83 ff 09 00 00 16 00 01 |........|........|
|00001e90| 0d 2e 00 06 00 00 09 00 | 00 16 00 11 20 20 20 20 |........|.... |
|00001ea0| 20 20 20 49 4e 54 45 52 | 46 41 43 45 0d 00 00 06 | INTER|FACE....|
|00001eb0| 00 00 09 00 00 16 00 01 | 0d 31 00 06 00 00 09 00 |........|.1......|
|00001ec0| 00 16 00 0c 20 20 20 20 | 20 20 20 55 53 45 53 0d |.... | USES.|
|00001ed0| 00 06 00 00 09 00 00 16 | 00 31 20 20 20 20 20 20 |........|.1 |
|00001ee0| 20 20 20 20 4d 65 6d 54 | 79 70 65 73 2c 20 51 75 | MemT|ypes, Qu|
|00001ef0| 69 63 6b 44 72 61 77 2c | 20 4f 53 49 6e 74 66 2c |ickDraw,| OSIntf,|
|00001f00| 20 54 6f 6f 6c 49 6e 74 | 66 3b 0d 9c 00 06 00 00 | ToolInt|f;......|
|00001f10| 09 00 00 16 00 01 0d 3c | 00 06 00 00 09 00 00 16 |.......<|........|
|00001f20| 00 1c 20 20 20 20 20 20 | 20 50 52 4f 43 45 44 55 |.. | PROCEDU|
|00001f30| 52 45 20 42 65 65 70 54 | 77 69 63 65 3b 0d 00 06 |RE BeepT|wice;...|
|00001f40| 00 00 09 00 00 16 00 01 | 0d 48 00 06 00 00 09 00 |........|.H......|
|00001f50| 00 16 00 16 20 20 20 20 | 20 20 20 49 4d 50 4c 45 |.... | IMPLE|
|00001f60| 4d 45 4e 54 41 54 49 4f | 4e 0d 00 06 00 00 09 00 |MENTATIO|N.......|
|00001f70| 00 16 00 01 0d 2e 00 06 | 00 00 09 00 00 16 00 1f |........|........|
|00001f80| 20 20 20 20 20 20 20 20 | 20 20 50 52 4f 43 45 44 | | PROCED|
|00001f90| 55 52 45 20 42 65 65 70 | 54 77 69 63 65 3b 0d ff |URE Beep|Twice;..|
|00001fa0| 00 06 00 00 09 00 00 16 | 00 01 0d 00 00 06 00 00 |........|........|
|00001fb0| 09 00 00 16 00 23 20 20 | 20 20 20 20 20 20 20 20 |.....# | |
|00001fc0| 56 41 52 20 66 69 6e 61 | 6c 54 69 63 6b 73 3a 20 |VAR fina|lTicks: |
|00001fd0| 4c 6f 6e 67 49 6e 74 3b | 0d a3 00 06 00 00 09 00 |LongInt;|........|
|00001fe0| 00 16 00 01 0d a7 00 06 | 00 00 09 00 00 16 00 1c |........|........|
|00001ff0| 20 20 20 20 20 20 20 20 | 20 20 42 45 47 49 4e 20 | | BEGIN |
|00002000| 7b 42 65 65 70 54 77 69 | 63 65 7d 0d 00 06 00 00 |{BeepTwi|ce}.....|
|00002010| 09 00 00 16 00 19 20 20 | 20 20 20 20 20 20 20 20 |...... | |
|00002020| 20 20 20 53 79 73 42 65 | 65 70 28 31 29 3b 0d 41 | SysBe|ep(1);.A|
|00002030| 00 06 00 00 09 00 00 16 | 00 4d 20 20 20 20 20 20 |........|.M |
|00002040| 20 20 20 20 20 20 20 44 | 65 6c 61 79 28 31 32 30 | D|elay(120|
|00002050| 2c 20 66 69 6e 61 6c 54 | 69 63 6b 73 29 3b 20 7b |, finalT|icks); {|
|00002060| 44 65 6c 61 79 20 74 77 | 6f 20 73 65 63 6f 6e 64 |Delay tw|o second|
|00002070| 73 2c 20 74 68 69 73 27 | 6c 6c 20 61 6e 6e 6f 79 |s, this'|ll annoy|
|00002080| 20 27 65 6d 21 7d 0d 73 | 00 06 00 00 09 00 00 16 | 'em!}.s|........|
|00002090| 00 19 20 20 20 20 20 20 | 20 20 20 20 20 20 20 53 |.. | S|
|000020a0| 79 73 42 65 65 70 28 31 | 29 3b 0d 41 00 06 00 00 |ysBeep(1|);.A....|
|000020b0| 09 00 00 16 00 1c 20 20 | 20 20 20 20 20 20 20 20 |...... | |
|000020c0| 45 4e 44 3b 20 20 7b 42 | 65 65 70 54 77 69 63 65 |END; {B|eepTwice|
|000020d0| 7d 0d 00 06 00 00 09 00 | 00 16 00 01 0d ff 00 06 |}.......|........|
|000020e0| 00 00 09 00 00 16 00 09 | 01 dd 03 00 00 00 00 09 |........|........|
|000020f0| 02 07 02 07 02 07 02 07 | 02 07 02 07 02 07 02 07 |........|........|
|00002100| 02 07 02 07 02 07 02 07 | 00 1e 00 00 00 0f 7b 00 |........|......{.|
|00002110| 00 f2 ff 2a 0f 4d f7 9f | 57 73 95 f7 7f 44 1d 0f |...*.M..|Ws...D..|
|00002120| 2a f2 ff 0d 00 06 00 00 | 09 00 00 16 00 06 00 00 |*.......|........|
|00002130| 0c 00 00 14 00 95 54 68 | 61 74 d5 73 20 61 6c 6c |......Th|at.s all|
|00002140| 20 74 68 65 72 65 20 69 | 73 20 74 6f 20 74 68 65 | there i|s to the|
|00002150| 20 50 61 73 63 61 6c 2e | 20 20 4e 6f 77 20 79 6f | Pascal.| Now yo|
|00002160| 75 20 63 61 6e 20 63 6f | 6d 70 69 6c 65 20 61 6e |u can co|mpile an|
|00002170| 64 20 6c 69 6e 6b 20 74 | 68 65 20 63 6f 64 65 20 |d link t|he code |
|00002180| 74 6f 20 70 72 6f 64 75 | 63 65 20 61 20 73 74 61 |to produ|ce a sta|
|00002190| 6e 64 2d 61 6c 6f 6e 65 | 20 6d 6f 64 75 6c 65 2e |nd-alone| module.|
|000021a0| 20 20 46 6f 6c 6c 6f 77 | 69 6e 67 20 61 72 65 20 | Follow|ing are |
|000021b0| 74 68 65 20 63 6f 6d 6d | 61 6e 64 73 20 74 68 61 |the comm|ands tha|
|000021c0| 74 20 79 6f 75 20 75 73 | 65 3a 0d 00 00 06 00 00 |t you us|e:......|
|000021d0| 0c 00 00 14 00 09 01 dd | 03 00 00 00 00 09 02 07 |........|........|
|000021e0| 02 07 02 07 02 07 02 07 | 02 07 02 07 02 07 02 07 |........|........|
|000021f0| 02 07 02 07 02 07 00 00 | 00 00 00 77 03 e8 00 0d |........|...w....|
|00002200| 4d 41 47 49 43 50 49 43 | 11 01 ff 96 00 01 0d 02 |MAGICPIC|........|
|00002210| 00 06 00 00 0c 00 00 14 | 00 01 0d ff 00 06 00 00 |........|........|
|00002220| 0c 00 00 14 00 09 01 dd | 00 00 00 00 00 09 02 07 |........|........|
|00002230| 02 07 02 07 02 07 02 07 | 02 07 02 07 02 07 02 07 |........|........|
|00002240| 02 07 02 07 02 07 0d 00 | 00 06 00 00 0c 00 00 14 |........|........|
|00002250| 00 2a 43 6f 6d 70 69 6c | 65 20 74 68 65 20 75 6e |.*Compil|e the un|
|00002260| 69 74 20 74 6f 20 6f 75 | 74 70 75 74 20 66 69 6c |it to ou|tput fil|
|00002270| 65 20 49 6e 69 74 2e 70 | 2e 6f 2e 0d 00 06 00 00 |e Init.p|.o......|
|00002280| 0c 00 00 14 00 09 01 dd | 03 00 00 00 00 09 02 07 |........|........|
|00002290| 02 07 02 07 02 07 02 07 | 02 07 02 07 02 07 02 07 |........|........|
|000022a0| 02 07 02 07 02 07 00 00 | ff d6 00 17 03 be 00 0d |........|........|
|000022b0| 4d 41 47 49 43 50 49 43 | 11 01 ff 69 00 01 0d ff |MAGICPIC|...i....|
|000022c0| 00 06 00 00 09 00 00 16 | 00 16 00 41 20 20 20 20 |........|...A |
|000022d0| 20 20 20 20 20 20 20 20 | 20 20 2d 72 74 20 49 4e | | -rt IN|
|000022e0| 49 54 3d 30 20 b6 20 20 | 20 20 20 20 20 20 20 20 |IT=0 . | |
|000022f0| 20 20 20 20 20 20 23 20 | 72 65 73 6f 75 72 63 65 | # |resource|
|00002300| 20 74 79 70 65 20 61 6e | 64 20 49 44 0d 00 00 06 | type an|d ID....|
|00002310| 00 00 09 00 00 16 00 41 | 20 20 20 20 20 20 20 20 |.......A| |
|00002320| 20 20 20 20 20 20 2d 72 | 61 20 3d 31 36 20 20 20 | -r|a =16 |
|00002330| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002340| 20 20 23 20 49 4e 49 54 | 73 20 6d 75 73 74 20 62 | # INIT|s must b|
|00002350| 65 20 6c 6f 63 6b 65 64 | 0d 00 00 06 00 00 09 00 |e locked|........|
|00002360| 00 16 00 54 20 20 20 20 | 20 20 20 20 20 20 20 20 |...T | |
|00002370| 20 20 2d 6d 20 42 45 45 | 50 54 57 49 43 45 20 b6 | -m BEE|PTWICE .|
|00002380| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 23 20 | | # |
|00002390| 50 61 73 63 61 6c 20 67 | 65 6e 65 72 61 74 65 73 |Pascal g|enerates|
|000023a0| 20 75 70 70 65 72 63 61 | 73 65 20 6d 6f 64 75 6c | upperca|se modul|
|000023b0| 65 20 6e 61 6d 65 73 0d | 00 06 00 00 09 00 00 16 |e names.|........|
|000023c0| 00 54 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.T | |
|000023d0| 49 6e 69 74 2e 70 2e 6f | 20 b6 20 20 20 20 20 20 |Init.p.o| . |
|000023e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 23 20 4c 69 | | # Li|
|000023f0| 6e 6b 20 74 68 69 73 20 | 6f 62 6a 65 63 74 20 66 |nk this |object f|
|00002400| 69 6c 65 20 66 69 72 73 | 74 21 21 21 20 54 68 65 |ile firs|t!!! The|
|00002410| 6e 20 2e 2e 2e 0d 00 06 | 00 00 09 00 00 16 00 4f |n ......|.......O|
|00002420| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 22 7b | | "{|
|00002430| 4c 69 62 72 61 72 69 65 | 73 7d 22 49 6e 74 65 72 |Librarie|s}"Inter|
|00002440| 66 61 63 65 2e 6f 20 b6 | 20 20 23 20 6e 65 65 64 |face.o .| # need|
|00002450| 20 74 68 69 73 20 66 6f | 72 20 74 68 65 20 67 6c | this fo|r the gl|
|00002460| 75 65 20 66 6f 72 20 44 | 65 6c 61 79 28 29 0d ff |ue for D|elay()..|
|00002470| 00 06 00 00 09 00 00 16 | 02 fc f5 4b 78 0a 73 f6 |........|...Kx.s.|
|00002480| b8 02 b1 0f 49 f4 ef 49 | f5 4f 2c 0e f7 52 80 72 |....I..I|.O,..R.r|
|00002490| 07 30 2b 10 d7 a1 0f 4d | f7 9f 49 37 20 63 90 f6 |.0+....M|..I7 c..|
|000024a0| 77 f7 61 80 2b 10 f4 9f | 4e f4 9f 54 02 b1 04 18 |w.a.+...|N..T....|
|000024b0| 5f 75 4c 10 2f 79 e1 0f | 27 f4 9f 4e f4 9f 54 f2 |_uL./y..|'..N..T.|
|000024c0| 7f 2c 0f 49 f4 40 f3 d0 | f3 0f 2e 00 f5 95 f7 50 |.,.I.@..|.......P|
|000024d0| 8b 5f 75 a9 06 a8 50 81 | 20 2b 10 fd 2a 5c f6 b1 |._u...P.| +..*\..|
|000024e0| 9f d3 0f 62 72 07 30 2b | 10 41 85 f7 54 c1 06 22 |...br.0+|.A..T.."|
|000024f0| 47 f6 2f 75 21 80 5d 02 | b1 0f 49 f4 ef 49 f5 40 |G./u!.].|..I..I.@|
|00002500| f2 8f 27 f4 9f 4e f4 9f | 54 f2 70 41 85 f7 54 c1 |..'..N..|T.pA..T.|
|00002510| 80 f6 df 75 82 0f 62 10 | f6 d6 4f 6b 19 0a 5c f6 |...u..b.|..Ok..\.|
|00002520| b1 90 f6 21 c6 f7 58 10 | f4 9f 4e f4 9f 54 0f 33 |...!..X.|..N..T.3|
|00002530| f3 10 95 18 03 52 0a 5c | f6 b0 2b 1f 6d f2 9f 2e |.....R.\|..+.m...|
|00002540| 00 f5 4b 10 f6 d6 73 01 | 32 4f 79 0e 57 32 07 80 |..K...s.|2Oy.W2..|
|00002550| 8e 1c 7d 71 90 f6 2f 79 | 02 b1 0f 2d f6 d0 5e 27 |..}q../y|...-..^'|
|00002560| 53 f2 e0 0f 50 68 c6 a0 | f5 53 72 80 95 03 52 0b |S...Ph..|.Sr...R.|
|00002570| 6f 76 10 60 f6 d6 73 01 | 32 4f 79 0e 57 32 f2 c0 |ov.`..s.|2Oy.W2..|
|00002580| 63 9f 2c 08 73 c1 0f 79 | 5f 75 06 41 0a 73 f6 b7 |c.,.s..y|_u.A.s..|
|00002590| 3f 67 0f 77 72 b0 f2 2f | 7b f4 c7 f6 24 64 71 8f |?g.wr../|{...$dq.|
|000025a0| 7d f2 2f 49 32 14 d6 c1 | f2 e5 0f 28 f7 95 f7 50 |}./I2...|...(...P|
|000025b0| 31 19 02 b1 0f 67 af 75 | 10 d5 40 f5 ff 44 1a 6f |1....g.u|..@..D.o|
|000025c0| 79 0f 29 f2 c0 f7 95 f7 | 50 31 19 02 50 21 aa 02 |y.).....|P1..P!..|
|000025d0| b1 0a 73 f6 b1 40 f7 7b | 62 02 50 82 47 e0 6f 67 |..s..@.{|b.P.G.og|
|000025e0| 67 38 2f 2e 00 f5 95 f7 | 50 c5 f7 5a 90 a7 3f 6b |g8/.....|P..Z..?k|
|000025f0| 02 b7 80 f7 77 2b 5f 75 | 20 2b 10 f2 df 6d 05 e2 |....w+_u| +...m..|
|00002600| 75 3f 2c 0f 62 f7 52 02 | b1 30 6a a0 2b 10 c5 91 |u?,.b.R.|.0j.+...|
|00002610| 0d 54 0f 22 f7 bf 4c 7f | 62 46 47 18 f7 df 22 f4 |.T."..L.|bFG...".|
|00002620| 93 21 4d 6c 1f 2e 50 f7 | 75 f7 5a 90 f7 77 39 0f |.!Ml..P.|u.Z..w9.|
|00002630| 75 e0 73 02 b1 0f 27 f4 | 9f 4e f4 9f 54 f2 7f 2c |u.s...'.|.N..T..,|
|00002640| 0f 6d 6f 6b 73 f6 70 72 | 0f 6d f7 5c b0 a6 4f 67 |.moks.pr|.m.\..Og|
|00002650| 14 02 b6 30 72 03 11 98 | 02 50 f6 21 f2 e0 0f 4e |...0r...|.P.!...N|
|00002660| 52 7c 10 6a 85 02 b6 20 | f7 95 f7 50 31 19 02 50 |R|.j... |...P1..P|
|00002670| c6 e7 26 a7 f7 a1 0f 42 | f4 5f 45 f5 0f 54 f5 7f |..&....B|._E..T..|
|00002680| 49 f4 3f 45 f2 c0 87 3c | 10 f5 06 8c 6a 0c 53 f7 |I.?E...<|....j.S.|
|00002690| 61 42 80 f6 d5 9f 75 a1 | 03 6f 6d 18 02 50 f7 5e |aB....u.|.om..P.^|
|000026a0| e1 40 c6 81 f2 ef 0d 00 | 00 66 00 00 0c 00 00 14 |.@......|.f......|
|000026b0| 00 55 0c 00 00 16 00 5b | 0c 00 00 14 00 5d 0c 00 |.U.....[|.....]..|
|000026c0| 00 16 00 63 0c 00 00 14 | 00 b3 0c 00 00 16 00 b9 |...c....|........|
|000026d0| 0c 00 00 14 01 29 0c 00 | 00 16 01 2c 0c 00 00 14 |.....)..|...,....|
|000026e0| 01 b2 0c 00 00 16 01 b8 | 0c 00 00 14 02 10 0c 00 |........|........|
|000026f0| 00 16 02 13 0c 00 00 14 | 02 63 0c 00 00 16 02 69 |........|.c.....i|
|00002700| 0c 00 00 14 02 bf 0c 00 | 00 16 02 c8 0c 00 00 14 |........|........|
|00002710| 00 09 01 dd 03 00 00 00 | 00 09 02 07 02 07 02 07 |........|........|
|00002720| 02 07 02 07 02 07 02 07 | 02 07 02 07 02 07 02 07 |........|........|
|00002730| 02 07 00 09 01 dd 00 00 | 00 00 00 09 02 07 02 07 |........|........|
|00002740| 02 07 02 07 02 07 02 07 | 02 07 02 07 02 07 02 07 |........|........|
|00002750| 02 07 02 07 00 01 0d 2e | 00 06 00 00 0c 00 00 14 |........|........|
|00002760| 00 01 0d ff 00 06 00 00 | 0c 00 00 14 00 09 01 dd |........|........|
|00002770| 03 00 00 00 00 09 02 07 | 02 07 02 07 02 07 02 07 |........|........|
|00002780| 02 07 02 07 02 07 02 07 | 02 07 02 07 02 07 00 09 |........|........|
|00002790| 01 dd 00 00 00 00 00 09 | 02 07 02 07 02 07 02 07 |........|........|
|000027a0| 02 07 02 07 02 07 02 07 | 02 07 02 07 02 07 02 07 |........|........|
|000027b0| 00 09 01 dd 03 00 00 00 | 00 09 02 07 02 07 02 07 |........|........|
|000027c0| 02 07 02 07 02 07 02 07 | 02 07 02 07 02 07 02 07 |........|........|
|000027d0| 02 07 00 09 01 dd 00 00 | 00 00 00 09 02 07 02 07 |........|........|
|000027e0| 02 07 02 07 02 07 02 07 | 02 07 02 07 02 07 02 07 |........|........|
|000027f0| 02 07 02 07 00 09 01 dd | 03 00 00 00 00 09 02 07 |........|........|
|00002800| 02 07 02 07 02 07 02 07 | 02 07 02 07 02 07 02 07 |........|........|
|00002810| 02 07 02 07 02 07 00 17 | f5 74 72 73 f6 70 63 0f |........|.trs.pc.|
|00002820| 27 f4 9f 4e f4 9f 54 f2 | 70 73 0f 43 f0 d0 00 06 |'..N..T.|ps.C....|
|00002830| 00 00 0e 01 00 14 02 07 | 00 09 01 dd 03 00 00 00 |........|........|
|00002840| 00 09 02 07 02 07 02 07 | 02 07 02 07 02 07 02 07 |........|........|
|00002850| 02 07 02 07 02 07 02 07 | 02 07 00 0e 00 00 00 0a |........|........|
|00002860| 73 f6 b0 fb 6f 0d 00 06 | 00 00 09 00 00 16 0c 00 |s...o...|........|
|00002870| 00 16 02 c8 0c 00 00 14 | 00 01 0d ff 00 06 00 00 |........|........|
|00002880| 0c 00 00 14 00 31 fa 5f | 09 f4 93 87 91 0f 4d 6c |.....1._|......Ml|
|00002890| 73 25 8b f2 c0 f5 65 af | 75 f6 d1 0f 49 f2 c0 f5 |s%....e.|u...I...|
|000028a0| 4b 10 f5 77 39 5f 77 0f | 4d 63 6f 67 14 f0 d0 00 |K..w9_w.|Mcog....|
|000028b0| 00 12 00 00 0c 00 00 14 | 00 02 0c 02 00 14 00 12 |........|........|
|000028c0| 0c 00 00 14 00 54 20 20 | 20 20 20 20 20 2f 2a 2d |.....T | /*-|
|000028d0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000028e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 20 44 6f 47 72 6f 77 |--------|- DoGrow|
|000028f0| 20 70 72 6f 63 65 64 75 | 72 65 20 2d 2d 2d 2d 2d | procedu|re -----|
|00002900| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00002910| 2d 2d 2d 2d 2d 2d 2d 2a | 2f 0d 00 06 00 00 09 00 |-------*|/.......|
|00002920| 00 16 00 31 00 00 00 00 | 00 00 0f 77 f4 74 5f 77 |...1....|...w.t_w|
|00002930| f3 a0 0f 7b 09 46 f7 70 | f7 77 39 5f 77 fd 58 0f |...{.F.p|.w9_w.X.|
|00002940| 67 45 f7 70 7f 6d 6f 67 | 1f 7d f0 d0 00 06 00 00 |gE.p.mog|.}......|
|00002950| 09 00 00 16 00 09 01 dd | 00 00 00 00 00 09 02 07 |........|........|
|00002960| 02 07 02 07 02 07 02 07 | 02 07 02 07 02 07 02 07 |........|........|
|00002970| 02 07 02 07 02 07 00 00 | ff d6 00 14 03 be 00 0d |........|........|
|00002980| 4d 41 47 49 43 50 49 43 | 11 01 ff 2d 00 09 01 dd |MAGICPIC|...-....|
|00002990| 00 00 00 00 00 09 02 07 | 02 07 02 07 02 07 02 07 |........|........|
|000029a0| 02 07 02 07 02 07 02 07 | 02 07 02 07 02 07 00 09 |........|........|
|000029b0| 01 dd 00 00 00 00 00 09 | 02 07 02 07 02 07 02 07 |........|........|
|000029c0| 02 07 02 07 02 07 02 07 | 02 07 02 07 02 07 02 07 |........|........|
|000029d0| 00 09 01 dd 00 00 00 00 | 00 09 02 07 02 07 02 07 |........|........|
|000029e0| 02 07 02 07 02 07 02 07 | 02 07 02 07 02 07 02 07 |........|........|
|000029f0| 02 07 00 00 ff d6 00 0f | 03 be 00 0d 4d 41 47 49 |........|....MAGI|
|00002a00| 43 50 49 43 11 01 ff 6c | 00 01 0d ff 00 06 00 00 |CPIC...l|........|
|00002a10| 09 00 00 16 0c 00 00 16 | 01 15 0c 00 00 14 00 01 |........|........|
|00002a20| 0d 0a 00 06 00 00 0c 00 | 00 14 00 d2 49 66 20 79 |........|....If y|
|00002a30| 6f 75 20 68 61 76 65 20 | 61 6e 79 20 64 6f 75 62 |ou have |any doub|
|00002a40| 74 73 20 61 62 6f 75 74 | 20 77 68 61 74 20 74 68 |ts about| what th|
|00002a50| 65 20 65 6e 74 72 79 20 | 70 6f 69 6e 74 20 69 73 |e entry |point is|
|00002a60| 20 28 61 6e 64 20 79 6f | 75 20 63 61 6e 20 72 65 | (and yo|u can re|
|00002a70| 61 64 20 61 73 73 65 6d | 62 6c 65 72 29 20 79 6f |ad assem|bler) yo|
|00002a80| 75 20 63 61 6e 20 75 73 | 65 20 74 68 65 20 63 6f |u can us|e the co|
|00002a90| 6d 6d 61 6e 64 20 44 75 | 6d 70 43 6f 64 65 20 4d |mmand Du|mpCode M|
|00002aa0| 79 49 6e 69 74 20 2d 72 | 74 20 49 4e 49 54 20 74 |yInit -r|t INIT t|
|00002ab0| 6f 20 6c 6f 6f 6b 20 61 | 74 20 74 68 65 20 63 6f |o look a|t the co|
|00002ac0| 64 65 2e 20 20 49 6e 20 | 74 68 69 73 20 63 61 73 |de. In |this cas|
|00002ad0| 65 2c 20 74 68 65 20 66 | 69 72 73 74 20 63 6f 64 |e, the f|irst cod|
|00002ae0| 65 20 74 68 61 74 20 69 | 73 20 65 78 65 63 75 74 |e that i|s execut|
|00002af0| 65 64 20 73 68 6f 75 6c | 64 20 62 65 3a 0d 00 12 |ed shoul|d be:...|
|00002b00| 00 00 0c 00 00 14 00 6a | 0c 00 00 16 00 82 0c 00 |.......j|........|
|00002b10| 00 14 00 3a 00 00 00 00 | f2 3f 23 f2 30 a7 3f 6b |...:....|.?#.0.?k|
|00002b20| f3 a0 f4 54 45 40 0f 55 | 39 1d 73 19 01 32 4f 79 |...TE@.U|9.s..2Oy|
|00002b30| f2 c0 36 f6 d1 f3 a0 f5 | 1f 55 f4 9f 43 f4 bf 44 |..6.....|.U..C..D|
|00002b40| f5 2f 41 f5 7f 0d 00 06 | 00 00 09 00 00 16 00 09 |./A.....|........|
|00002b50| 01 dd 00 00 00 00 00 09 | 02 07 02 07 02 07 02 07 |........|........|
|00002b60| 02 07 02 07 02 07 02 07 | 02 07 02 07 02 07 02 07 |........|........|
|00002b70| 00 09 01 dd 03 00 00 00 | 00 09 02 07 02 07 02 07 |........|........|
|00002b80| 02 07 02 07 02 07 02 07 | 02 07 02 07 02 07 02 07 |........|........|
|00002b90| 02 07 00 09 01 dd 00 00 | 00 00 00 09 02 07 02 07 |........|........|
|00002ba0| 02 07 02 07 02 07 02 07 | 02 07 02 07 02 07 02 07 |........|........|
|00002bb0| 02 07 02 07 00 06 00 00 | 0c 00 00 14 00 c5 49 66 |........|......If|
|00002bc0| 20 79 6f 75 20 68 61 64 | 20 69 6e 63 6f 72 72 65 | you had| incorre|
|00002bd0| 63 74 6c 79 20 73 70 65 | 63 69 66 69 65 64 20 22 |ctly spe|cified "|
|00002be0| 7b 4c 69 62 72 61 72 69 | 65 73 7d 22 49 6e 74 65 |{Librari|es}"Inte|
|00002bf0| 72 66 61 63 65 2e 6f 20 | 66 69 72 73 74 2c 20 74 |rface.o |first, t|
|00002c00| 68 65 20 66 69 72 73 74 | 20 63 6f 64 65 20 65 78 |he first| code ex|
|00002c10| 65 63 75 74 65 64 20 77 | 6f 75 6c 64 20 68 61 76 |ecuted w|ould hav|
|00002c20| 65 20 62 65 65 6e 20 74 | 68 65 20 66 6f 6c 6c 6f |e been t|he follo|
|00002c30| 77 69 6e 67 20 67 6c 75 | 65 20 66 6f 72 20 5f 44 |wing glu|e for _D|
|00002c40| 65 6c 61 79 20 28 61 6e | 64 20 74 68 65 20 63 6f |elay (an|d the co|
|00002c50| 64 65 20 66 6f 72 20 74 | 68 65 20 27 49 4e 49 54 |de for t|he 'INIT|
|00002c60| 27 20 77 6f 75 6c 64 20 | 6e 65 76 65 72 20 68 61 |' would |never ha|
|00002c70| 76 65 20 62 65 65 6e 20 | 65 78 65 63 75 74 65 64 |ve been |executed|
|00002c80| 29 3a 0d 30 00 1e 00 00 | 0c 00 00 14 00 80 0c 00 |):.0....|........|
|00002c90| 00 16 00 86 0c 00 00 14 | 00 9d 0c 00 00 16 00 a3 |........|........|
|00002ca0| 0c 00 00 14 00 01 0d ff | 00 06 00 00 0c 00 00 14 |........|........|
|00002cb0| 00 09 01 dd 03 00 00 00 | 00 09 02 07 02 07 02 07 |........|........|
|00002cc0| 02 07 02 07 02 07 02 07 | 02 07 02 07 02 07 02 07 |........|........|
|00002cd0| 02 07 00 01 0d 01 00 06 | 00 00 0c 00 00 14 00 09 |........|........|
|00002ce0| 00 00 00 0f 7d f0 d0 00 | 00 06 00 00 09 00 00 16 |....}...|........|
|00002cf0| 00 01 0d 00 00 06 00 00 | 0c 00 00 14 00 01 0d 03 |........|........|
|00002d00| 00 06 00 00 0c 00 00 14 | 00 00 09 00 00 16 00 38 |........|.......8|
|00002d10| 20 20 20 20 20 20 20 4d | 4f 56 45 2e 4c 20 28 41 | M|OVE.L (A|
|00002d20| 37 29 2b 2c 41 31 20 20 | 20 20 20 20 20 3b 20 61 |7)+,A1 | ; a|
|00002d30| 64 64 72 65 73 73 20 6f | 66 20 56 41 52 20 70 61 |ddress o|f VAR pa|
|00002d40| 72 61 6d 65 74 65 72 0d | 00 06 00 00 09 00 00 16 |rameter.|........|
|00002d50| 00 3e 20 20 20 20 20 20 | 20 2e 2e 2e 20 20 20 20 |.> | ... |
|00002d60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 3b | | ;|
|00002d70| 20 66 69 6e 69 73 68 20 | 67 65 74 74 69 6e 67 20 | finish |getting |
|00002d80| 72 65 61 64 79 20 66 6f | 72 20 44 65 6c 61 79 0d |ready fo|r Delay.|
|00002d90| 00 06 00 00 09 00 00 16 | 00 2c 20 20 20 20 20 20 |........|., |
|00002da0| 20 5f 44 65 6c 61 79 20 | 20 20 20 20 20 20 20 20 | _Delay | |
|00002db0| 20 20 20 20 20 20 20 3b | 20 64 6f 20 74 68 65 20 | ;| do the |
|00002dc0| 44 65 6c 61 79 0d 00 06 | 00 00 09 00 00 16 00 31 |Delay...|.......1|
|00002dd0| 20 20 20 20 20 20 20 4d | 4f 56 45 2e 4c 20 44 30 | M|OVE.L D0|
|00002de0| 2c 28 41 31 29 20 20 20 | 20 20 20 20 20 3b 20 74 |,(A1) | ; t|
|00002df0| 68 65 20 56 41 52 20 70 | 61 72 61 6d 65 74 65 72 |he VAR p|arameter|
|00002e00| 0d 00 00 06 00 00 09 00 | 00 16 00 38 20 20 20 20 |........|...8 |
|00002e10| 20 20 20 52 54 53 20 20 | 20 20 20 20 20 20 20 20 | RTS | |
|00002e20| 20 20 20 20 20 20 20 20 | 20 3b 20 72 65 74 75 72 | | ; retur|
|00002e30| 6e 20 d1 20 62 75 74 20 | 74 6f 20 77 68 65 72 65 |n . but |to where|
|00002e40| 3f 3f 3f 0d 00 06 00 00 | 09 00 00 16 00 41 20 20 |???.....|.....A |
|00002e50| 20 20 20 20 20 4c 49 4e | 4b 20 41 36 2c 20 23 24 | LIN|K A6, #$|
|00002e60| 46 46 46 43 20 20 20 20 | 20 20 20 3b 20 74 68 65 |FFFC | ; the|
|00002e70| 20 63 6f 72 72 65 63 74 | 20 63 6f 64 65 2c 20 62 | correct| code, b|
|00002e80| 75 74 20 69 74 27 6c 6c | 20 6e 65 76 65 72 0d 00 |ut it'll| never..|
|00002e90| 00 06 00 00 09 00 00 16 | 00 2b 20 20 20 20 20 20 |........|.+ |
|00002ea0| 20 20 2e 2e 2e 20 20 20 | 20 20 20 20 20 20 20 20 | ... | |
|00002eb0| 20 20 20 20 20 20 20 3b | 20 62 65 20 65 78 65 63 | ;| be exec|
|00002ec0| 75 74 65 64 0d 00 00 06 | 00 00 09 00 00 16 00 01 |uted....|........|
|00002ed0| 0d 00 00 06 00 00 09 00 | 00 16 00 2b 20 20 20 20 |........|...+ |
|00002ee0| 20 20 20 53 65 74 46 69 | 6c 65 20 4d 79 49 6e 69 | SetFi|le MyIni|
|00002ef0| 74 20 2d 74 20 49 4e 49 | 54 20 2d 63 20 4a 41 46 |t -t INI|T -c JAF|
|00002f00| 31 20 26 26 20 b6 0d 00 | 00 06 00 00 09 00 00 16 |1 && ...|........|
|00002f10| 00 09 01 dd 00 00 00 00 | 00 09 02 07 02 07 02 07 |........|........|
|00002f20| 02 07 02 07 02 07 02 07 | 02 07 02 07 02 07 02 07 |........|........|
|00002f30| 02 07 00 09 01 dd 03 00 | 00 00 00 09 02 07 02 07 |........|........|
|00002f40| 02 07 02 07 02 07 02 07 | 02 07 02 07 02 07 02 07 |........|........|
|00002f50| 02 07 02 07 00 09 01 dd | 00 00 00 00 00 09 02 07 |........|........|
|00002f60| 02 07 02 07 02 07 02 07 | 02 07 02 07 02 07 02 07 |........|........|
|00002f70| 02 07 02 07 02 07 00 15 | 01 5a 54 68 69 73 20 63 |........|.ZThis c|
|00002f80| 6f 6d 6d 61 6e 64 20 73 | 65 74 73 20 74 68 65 20 |ommand s|ets the |
|00002f90| 66 69 6c 65 20 74 79 70 | 65 20 6f 66 20 4d 79 49 |file typ|e of MyI|
|00002fa0| 6e 69 74 20 74 6f 20 d2 | 49 4e 49 54 d3 20 28 73 |nit to .|INIT. (s|
|00002fb0| 6f 20 74 68 61 74 20 74 | 68 65 20 49 4e 49 54 20 |o that t|he INIT |
|00002fc0| 33 31 20 6d 65 63 68 61 | 6e 69 73 6d 20 72 75 6e |31 mecha|nism run|
|00002fd0| 73 20 69 74 29 20 61 6e | 64 20 74 68 65 20 63 72 |s it) an|d the cr|
|00002fe0| 65 61 74 6f 72 20 74 6f | 20 d2 4a 41 46 31 d3 2e |eator to| .JAF1..|
|00002ff0| 20 28 59 65 73 2c 20 4a | 41 46 31 20 69 73 20 72 | (Yes, J|AF1 is r|
|00003000| 65 67 69 73 74 65 72 65 | 64 20 77 69 74 68 20 44 |egistere|d with D|
|00003010| 65 76 65 6c 6f 70 65 72 | 20 54 65 63 68 6e 69 63 |eveloper| Technic|
|00003020| 61 6c 20 53 75 70 70 6f | 72 74 2e 20 20 49 73 20 |al Suppo|rt. Is |
|00003030| 79 6f 75 72 20 66 69 6c | 65 20 74 79 70 65 3f 29 |your fil|e type?)|
|00003040| 20 20 49 66 20 74 68 65 | 20 53 65 74 46 69 6c 65 | If the| SetFile|
|00003050| 20 73 75 63 63 65 65 64 | 73 2c 20 79 6f 75 20 74 | succeed|s, you t|
|00003060| 68 65 6e 20 63 6f 75 72 | 61 67 65 6f 75 73 6c 79 |hen cour|ageously|
|00003070| 20 64 75 70 6c 69 63 61 | 74 65 20 74 68 65 20 49 | duplica|te the I|
|00003080| 4e 49 54 20 69 6e 74 6f | 20 74 68 65 20 73 79 73 |NIT into| the sys|
|00003090| 74 65 6d 20 66 6f 6c 64 | 65 72 2c 20 73 6f 20 69 |tem fold|er, so i|
|000030a0| 74 20 69 73 20 65 78 65 | 63 75 74 65 64 20 74 68 |t is exe|cuted th|
|000030b0| 65 20 6e 65 78 74 20 74 | 69 6d 65 20 74 68 65 20 |e next t|ime the |
|000030c0| 73 79 73 74 65 6d 20 69 | 73 20 72 65 62 6f 6f 74 |system i|s reboot|
|000030d0| 65 64 2e 0d 00 2a 00 00 | 0c 00 00 14 00 82 0c 01 |ed...*..|........|
|000030e0| 00 14 00 84 0c 00 00 14 | 00 b6 0c 01 00 14 00 ba |........|........|
|000030f0| 0c 00 00 14 00 cf 0c 00 | 00 16 00 d6 0c 00 00 14 |........|........|
|00003100| 00 01 0d 8f 00 06 00 00 | 0c 00 00 14 00 1b 54 68 |........|......Th|
|00003110| 61 74 d5 73 20 61 6c 6c | 20 74 68 65 72 65 20 69 |at.s all| there i|
|00003120| 73 20 74 6f 20 69 74 2e | 0d ff 00 06 00 00 0c 00 |s to it.|........|
|00003130| 00 14 00 01 0d ff 00 06 | 00 00 0c 00 00 14 02 88 |........|........|
|00003140| 4e 6f 77 20 66 6f 72 20 | 61 20 63 6f 75 70 6c 65 |Now for |a couple|
|00003150| 20 6f 66 20 63 61 76 65 | 61 74 73 2e 20 20 46 69 | of cave|ats. Fi|
|00003160| 72 73 74 20 6f 66 20 61 | 6c 6c 2c 20 79 6f 75 20 |rst of a|ll, you |
|00003170| 63 61 6e 6e 6f 74 20 65 | 61 73 69 6c 79 20 75 73 |cannot e|asily us|
|00003180| 65 20 67 6c 6f 62 61 6c | 73 20 69 6e 20 73 74 61 |e global|s in sta|
|00003190| 6e 64 2d 61 6c 6f 6e 65 | 20 63 6f 64 65 2e 20 20 |nd-alone| code. |
|000031a0| 49 66 20 79 6f 75 20 70 | 75 74 20 74 68 65 20 6c |If you p|ut the l|
|000031b0| 69 6e 65 20 56 41 52 20 | 67 4c 6f 6e 67 3a 20 4c |ine VAR |gLong: L|
|000031c0| 6f 6e 67 69 6e 74 3b 20 | 72 69 67 68 74 20 61 66 |ongint; |right af|
|000031d0| 74 65 72 20 74 68 65 20 | 6b 65 79 77 6f 72 64 20 |ter the |keyword |
|000031e0| 49 4e 54 45 52 46 41 43 | 45 2c 20 74 68 65 20 63 |INTERFAC|E, the c|
|000031f0| 6f 64 65 20 63 6f 6d 70 | 69 6c 65 73 20 61 6e 64 |ode comp|iles and|
|00003200| 20 6c 69 6e 6b 73 20 6f | 6b 61 79 2c 20 61 6e 64 | links o|kay, and|
|00003210| 20 70 72 6f 62 61 62 6c | 79 20 65 78 65 63 75 74 | probabl|y execut|
|00003220| 65 73 20 6f 6b 61 79 2e | 20 20 59 6f 75 20 67 65 |es okay.| You ge|
|00003230| 74 20 6e 6f 20 77 61 72 | 6e 69 6e 67 20 74 68 61 |t no war|ning tha|
|00003240| 74 20 79 6f 75 20 61 72 | 65 20 75 73 69 6e 67 20 |t you ar|e using |
|00003250| 73 6f 6d 65 6f 6e 65 20 | 65 6c 73 65 d5 73 20 67 |someone |else.s g|
|00003260| 6c 6f 62 61 6c 20 73 70 | 61 63 65 2e 20 20 49 66 |lobal sp|ace. If|
|00003270| 20 79 6f 75 20 75 73 65 | 20 74 68 65 20 73 74 61 | you use| the sta|
|00003280| 74 65 6d 65 6e 74 20 67 | 4c 6f 6e 67 20 3a 3d 20 |tement g|Long := |
|00003290| 34 3b 20 74 68 65 20 6c | 6f 6e 67 20 77 6f 72 64 |4; the l|ong word|
|000032a0| 20 76 61 6c 75 65 20 66 | 6f 75 72 20 69 73 20 70 | value f|our is p|
|000032b0| 6c 61 63 65 64 20 61 74 | 20 2d 34 28 41 35 29 2c |laced at| -4(A5),|
|000032c0| 20 74 68 75 73 20 64 65 | 73 74 72 6f 79 69 6e 67 | thus de|stroying|
|000032d0| 20 77 68 61 74 65 76 65 | 72 20 77 61 73 20 74 68 | whateve|r was th|
|000032e0| 65 72 65 20 28 67 65 6e | 65 72 61 6c 6c 79 2c 20 |ere (gen|erally, |
|000032f0| 74 68 65 20 73 74 61 72 | 74 20 6f 66 20 74 68 65 |the star|t of the|
|00003300| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e d5 73 20 67 | applica|tion.s g|
|00003310| 6c 6f 62 61 6c 73 29 2e | 20 20 54 68 69 73 20 69 |lobals).| This i|
|00003320| 73 20 6e 6f 74 20 72 65 | 61 6c 6c 79 20 61 20 70 |s not re|ally a p|
|00003330| 72 6f 62 6c 65 6d 20 77 | 69 74 68 20 27 49 4e 49 |roblem w|ith 'INI|
|00003340| 54 27 20 72 65 73 6f 75 | 72 63 65 73 20 28 69 74 |T' resou|rces (it|
|00003350| 20 64 65 66 69 6e 69 74 | 65 6c 79 20 69 73 20 61 | definit|ely is a|
|00003360| 20 70 72 6f 62 6c 65 6d | 20 69 6e 20 74 68 65 20 | problem| in the |
|00003370| 27 57 44 45 46 27 20 65 | 78 61 6d 70 6c 65 20 62 |'WDEF' e|xample b|
|00003380| 65 6c 6f 77 29 2c 20 62 | 75 74 2c 20 69 6e 20 67 |elow), b|ut, in g|
|00003390| 65 6e 65 72 61 6c 2c 20 | 79 6f 75 20 73 68 6f 75 |eneral, |you shou|
|000033a0| 6c 64 20 6e 6f 74 20 75 | 73 65 20 67 6c 6f 62 61 |ld not u|se globa|
|000033b0| 6c 73 20 69 6e 20 73 74 | 61 6e 64 2d 61 6c 6f 6e |ls in st|and-alon|
|000033c0| 65 20 63 6f 64 65 2e 0d | 00 5a 00 00 0c 00 00 14 |e code..|.Z......|
|000033d0| 00 74 0c 00 00 16 00 87 | 0c 00 00 14 00 a0 0c 00 |.t......|........|
|000033e0| 00 16 00 a9 0c 00 00 14 | 00 f2 0c 01 00 14 00 f4 |........|........|
|000033f0| 0c 00 00 14 01 47 0c 00 | 00 16 01 52 0c 00 00 14 |.....G..|...R....|
|00003400| 01 79 0c 00 00 16 01 7f | 0c 00 00 14 01 fc 0c 00 |.y......|........|
|00003410| 00 16 02 02 0c 00 00 14 | 02 30 0c 00 00 16 02 36 |........|.0.....6|
|00003420| 0c 00 00 14 00 01 0d ff | 00 06 00 00 0c 00 00 14 |........|........|
|00003430| 01 11 41 6e 6f 74 68 65 | 72 20 6c 69 6d 69 74 61 |..Anothe|r limita|
|00003440| 74 69 6f 6e 20 6f 66 20 | 73 74 61 6e 64 2d 61 6c |tion of |stand-al|
|00003450| 6f 6e 65 20 63 6f 64 65 | 20 69 73 20 74 68 61 74 |one code| is that|
|00003460| 20 69 74 20 63 61 6e 6e | 6f 74 20 75 73 65 20 6f | it cann|ot use o|
|00003470| 74 68 65 72 20 67 6c 6f | 62 61 6c 73 20 73 75 63 |ther glo|bals suc|
|00003480| 68 20 61 73 20 51 75 69 | 63 6b 44 72 61 77 20 67 |h as Qui|ckDraw g|
|00003490| 6c 6f 62 61 6c 73 2e 20 | 20 46 6f 72 20 65 78 61 |lobals. | For exa|
|000034a0| 6d 70 6c 65 2c 20 69 66 | 20 79 6f 75 20 74 72 79 |mple, if| you try|
|000034b0| 20 74 6f 20 6d 61 6b 65 | 20 61 20 51 75 69 63 6b | to make| a Quick|
|000034c0| 44 72 61 77 20 63 61 6c | 6c 20 73 75 63 68 20 61 |Draw cal|l such a|
|000034d0| 73 20 53 65 74 50 6f 72 | 74 28 40 74 68 65 50 6f |s SetPor|t(@thePo|
|000034e0| 72 74 29 3b 20 28 77 68 | 69 63 68 20 75 73 65 73 |rt); (wh|ich uses|
|000034f0| 20 74 68 65 20 51 75 69 | 63 6b 44 72 61 77 20 67 | the Qui|ckDraw g|
|00003500| 6c 6f 62 61 6c 20 76 61 | 72 69 61 62 6c 65 20 74 |lobal va|riable t|
|00003510| 68 65 50 6f 72 74 29 20 | 79 6f 75 20 61 72 65 20 |hePort) |you are |
|00003520| 69 6e 66 6f 72 6d 65 64 | 20 61 62 6f 75 74 20 79 |informed| about y|
|00003530| 6f 75 72 20 74 72 61 6e | 73 67 72 65 73 73 69 6f |our tran|sgressio|
|00003540| 6e 3a 0d ff 00 1e 00 00 | 0c 00 00 14 00 a0 0c 00 |n:......|........|
|00003550| 00 16 00 b2 0c 00 00 14 | 00 dd 0c 00 00 16 00 e4 |........|........|
|00003560| 0c 00 00 14 00 00 00 00 | 00 1e 03 e8 00 0d 4d 41 |........|......MA|
|00003570| 47 49 43 50 49 43 11 01 | ff 96 00 09 01 dd 03 00 |GICPIC..|........|
|00003580| 00 00 00 09 02 07 02 07 | 02 07 02 07 02 07 02 07 |........|........|
|00003590| 02 07 02 07 02 07 02 07 | 02 07 02 07 00 09 01 dd |........|........|
|000035a0| 00 00 00 00 00 09 02 07 | 02 07 02 07 02 07 02 07 |........|........|
|000035b0| 02 07 02 07 02 07 02 07 | 02 07 02 07 02 07 00 09 |........|........|
|000035c0| 01 dd 03 00 00 00 00 09 | 02 07 02 07 02 07 02 07 |........|........|
|000035d0| 02 07 02 07 02 07 02 07 | 02 07 02 07 02 07 02 07 |........|........|
|000035e0| 00 01 0d ff 00 06 00 00 | 0c 00 00 14 00 17 00 00 |........|........|
|000035f0| 00 0e 68 c6 a0 f4 df 79 | f5 7f 44 f4 5f 46 f2 ee |..h....y|..D._F..|
|00003600| f0 d0 00 06 00 00 09 00 | 00 16 00 01 0d ff 00 06 |........|........|
|00003610| 00 00 0c 00 00 14 00 01 | 0d 01 00 06 00 00 0c 00 |........|........|
|00003620| 00 14 00 09 01 dd 00 00 | 00 00 00 09 02 07 02 07 |........|........|
|00003630| 02 07 02 07 02 07 02 07 | 02 07 02 07 02 07 02 07 |........|........|
|00003640| 02 07 02 07 01 63 59 6f | 75 20 63 61 6e 20 61 63 |.....cYo|u can ac|
|00003650| 63 65 73 73 20 51 75 69 | 63 6b 44 72 61 77 20 67 |cess Qui|ckDraw g|
|00003660| 6c 6f 62 61 6c 73 20 66 | 72 6f 6d 20 73 74 61 6e |lobals f|rom stan|
|00003670| 64 2d 61 6c 6f 6e 65 20 | 63 6f 64 65 20 62 79 20 |d-alone |code by |
|00003680| 75 73 69 6e 67 20 41 35 | 20 28 61 76 61 69 6c 61 |using A5| (availa|
|00003690| 62 6c 65 20 66 72 6f 6d | 20 68 69 67 68 2d 6c 65 |ble from| high-le|
|000036a0| 76 65 6c 20 6c 61 6e 67 | 75 61 67 65 73 20 69 6e |vel lang|uages in|
|000036b0| 20 74 68 65 20 6c 6f 77 | 2d 6d 65 6d 6f 72 79 20 | the low|-memory |
|000036c0| 67 6c 6f 62 61 6c 20 43 | 75 72 72 65 6e 74 41 35 |global C|urrentA5|
|000036d0| 20 28 61 20 6c 6f 6e 67 | 20 77 6f 72 64 20 61 74 | (a long| word at|
|000036e0| 20 24 39 30 34 29 29 20 | 77 68 69 63 68 20 69 73 | $904)) |which is|
|000036f0| 20 61 20 70 6f 69 6e 74 | 65 72 20 74 6f 20 61 20 | a point|er to a |
|00003700| 70 6f 69 6e 74 65 72 20 | 74 6f 20 74 68 65 50 6f |pointer |to thePo|
|00003710| 72 74 20 28 40 74 68 65 | 50 6f 72 74 20 3d 20 28 |rt (@the|Port = (|
|00003720| 41 35 29 29 2e 20 20 53 | 6f 6d 65 20 6f 66 20 74 |A5)). S|ome of t|
|00003730| 68 65 20 73 74 61 6e 64 | 61 72 64 20 50 61 73 63 |he stand|ard Pasc|
|00003740| 61 6c 20 6c 69 62 72 61 | 72 79 20 72 6f 75 74 69 |al libra|ry routi|
|00003750| 6e 65 73 20 72 65 71 75 | 69 72 65 20 74 68 65 20 |nes requ|ire the |
|00003760| 75 73 65 20 6f 66 20 67 | 6c 6f 62 61 6c 73 2c 20 |use of g|lobals, |
|00003770| 79 6f 75 20 67 65 74 20 | 73 69 6d 69 6c 61 72 20 |you get |similar |
|00003780| 6c 69 6e 6b 65 72 20 65 | 72 72 6f 72 73 20 69 66 |linker e|rrors if|
|00003790| 20 79 6f 75 20 75 73 65 | 20 74 68 65 73 65 20 72 | you use| these r|
|000037a0| 6f 75 74 69 6e 65 73 2e | 0d e6 00 36 00 00 0c 00 |outines.|...6....|
|000037b0| 00 14 00 40 0c 00 00 16 | 00 42 0c 00 00 14 00 81 |...@....|.B......|
|000037c0| 0c 00 00 16 00 8a 0c 00 | 00 14 00 c5 0c 00 00 16 |........|........|
|000037d0| 00 cc 0c 00 00 14 00 ce | 0c 00 00 16 00 dd 0c 00 |........|........|
|000037e0| 00 14 00 01 0d ef 00 06 | 00 00 0c 00 00 14 00 e4 |........|........|
|000037f0| 49 66 20 73 6f 6d 65 74 | 68 69 6e 67 20 69 73 6e |If somet|hing isn|
|00003800| d5 74 20 77 6f 72 6b 69 | 6e 67 20 63 6f 72 72 65 |.t worki|ng corre|
|00003810| 63 74 6c 79 2c 20 79 6f | 75 20 6d 69 67 68 74 20 |ctly, yo|u might |
|00003820| 6c 6f 6f 6b 20 66 6f 72 | 20 69 6e 61 64 76 65 72 |look for| inadver|
|00003830| 74 65 6e 74 20 75 73 65 | 20 6f 66 20 67 6c 6f 62 |tent use| of glob|
|00003840| 61 6c 73 2e 20 20 49 66 | 20 79 6f 75 72 20 75 73 |als. If| your us|
|00003850| 65 20 6f 66 20 67 6c 6f | 62 61 6c 73 20 69 73 20 |e of glo|bals is |
|00003860| 69 6e 74 65 6e 74 69 6f | 6e 61 6c 2c 20 74 68 65 |intentio|nal, the|
|00003870| 6e 20 6d 61 6b 65 20 73 | 75 72 65 20 79 6f 75 20 |n make s|ure you |
|00003880| 61 72 65 20 75 73 69 6e | 67 20 74 68 65 6d 20 69 |are usin|g them i|
|00003890| 6e 20 61 63 63 6f 72 64 | 61 6e 63 65 20 77 69 74 |n accord|ance wit|
|000038a0| 68 20 54 65 63 68 6e 69 | 63 61 6c 20 4e 6f 74 65 |h Techni|cal Note|
|000038b0| 20 23 32 35 36 2c 20 47 | 6c 6f 62 61 6c 73 20 69 | #256, G|lobals i|
|000038c0| 6e 20 53 74 61 6e 64 2d | 41 6c 6f 6e 65 20 43 6f |n Stand-|Alone Co|
|000038d0| 64 65 2e 0d 00 06 00 00 | 0c 00 00 14 00 13 f4 6f |de......|.......o|
|000038e0| 75 42 b1 40 f5 21 d1 41 | 3c 1f 3a f0 d0 00 00 06 |uB.@.!.A|<.:.....|
|000038f0| 00 00 0c 01 00 14 00 1d | 00 00 00 0f 4c 73 f6 b0 |........|....Ls..|
|00003900| 00 0f 2d 42 0f 57 f4 4f | 45 f4 6f 3d f3 30 fb 60 |..-B.W.O|E.o=.0.`|
|00003910| f0 d0 00 06 00 00 09 00 | 00 16 00 01 0d 00 00 06 |........|........|
|00003920| 00 00 0c 00 00 14 00 1b | 00 00 00 0f 7d 00 f2 ff |........|....}...|
|00003930| 2a 0f 44 5f 44 46 f7 7f | 53 7f 7a 10 f2 af 2f f0 |*.D_DF..|S.z.../.|
|00003940| d0 00 00 06 00 00 09 00 | 00 16 00 00 00 00 00 01 |........|........|
|00003950| 0d 01 00 06 00 00 0c 00 | 00 14 00 36 46 6f 6c 6c |........|...6Foll|
|00003960| 6f 77 69 6e 67 20 69 73 | 20 74 68 65 20 73 6f 75 |owing is| the sou|
|00003970| 72 63 65 20 66 6f 72 20 | 74 68 65 20 73 61 6d 65 |rce for |the same|
|00003980| 20 27 49 4e 49 54 27 20 | 69 6e 20 4d 50 57 20 43 | 'INIT' |in MPW C|
|00003990| 3a 0d 00 12 00 00 0c 00 | 00 14 00 25 0c 00 00 16 |:.......|...%....|
|000039a0| 00 2b 0c 00 00 14 00 17 | 00 00 00 0f 7d 00 f2 ff |.+......|....}...|
|000039b0| 2a 0f 44 5f 47 45 f7 70 | f2 af 2f f0 d0 00 00 06 |*.D_GE.p|../.....|
|000039c0| 00 00 09 00 00 16 00 09 | 01 dd 03 00 00 00 00 09 |........|........|
|000039d0| 02 07 02 07 02 07 02 07 | 02 07 02 07 02 07 02 07 |........|........|
|000039e0| 02 07 02 07 02 07 02 07 | 00 01 0d ff 00 06 00 00 |........|........|
|000039f0| 0c 00 00 14 00 00 09 00 | 00 16 00 01 0d 00 00 06 |........|........|
|00003a00| 00 00 09 00 00 16 00 18 | 20 20 20 20 20 20 20 76 |........| v|
|00003a10| 6f 69 64 20 42 65 65 70 | 54 77 69 63 65 28 29 0d |oid Beep|Twice().|
|00003a20| 00 06 00 00 09 00 00 16 | 00 09 20 20 20 20 20 20 |........|.. |
|00003a30| 20 7b 0d 00 00 06 00 00 | 09 00 00 16 00 23 20 20 | {......|.....# |
|00003a40| 20 20 20 20 20 20 20 20 | 20 20 20 20 6c 6f 6e 67 | | long|
|00003a50| 20 69 6e 74 20 66 69 6e | 61 6c 54 69 63 6b 73 3b | int fin|alTicks;|
|00003a60| 0d 00 00 06 00 00 09 00 | 00 16 00 01 0d 00 00 06 |........|........|
|00003a70| 00 00 09 00 00 16 00 1a | 20 20 20 20 20 20 20 20 |........| |
|00003a80| 20 20 20 20 20 20 53 79 | 73 42 65 65 70 28 31 29 | Sy|sBeep(1)|
|00003a90| 3b 0d 00 06 00 00 09 00 | 00 16 00 26 20 20 20 20 |;.......|...& |
|00003aa0| 20 20 20 20 20 20 20 20 | 20 20 44 65 6c 61 79 28 | | Delay(|
|00003ab0| 31 32 30 2c 26 66 69 6e | 61 6c 54 69 63 6b 73 29 |120,&fin|alTicks)|
|00003ac0| 3b 0d 00 06 00 00 09 00 | 00 16 00 1a 20 20 20 20 |;.......|.... |
|00003ad0| 20 20 20 20 20 20 20 20 | 20 20 53 79 73 42 65 65 | | SysBee|
|00003ae0| 70 28 31 29 3b 0d 00 06 | 00 00 09 00 00 16 00 09 |p(1);...|........|
|00003af0| 01 dd 00 00 00 00 00 09 | 02 07 02 07 02 07 02 07 |........|........|
|00003b00| 02 07 02 07 02 07 02 07 | 02 07 02 07 02 07 02 07 |........|........|
|00003b10| 00 1d 00 00 00 00 00 00 | 00 0f 2d 50 23 f3 1f 31 |........|..-P#..1|
|00003b20| f3 0f 2e f7 79 1d f0 d0 | 00 06 00 00 09 00 00 16 |....y...|........|
|00003b30| 00 1f 54 68 65 20 6c 69 | 6e 6b 20 69 6e 73 74 72 |..The li|nk instr|
|00003b40| 75 63 74 69 6f 6e 20 66 | 6f 72 20 43 20 69 73 3a |uction f|or C is:|
|00003b50| 0d 27 00 06 00 00 0c 00 | 00 14 00 09 01 dd 03 00 |.'......|........|
|00003b60| 00 00 00 09 02 07 02 07 | 02 07 02 07 02 07 02 07 |........|........|
|00003b70| 02 07 02 07 02 07 02 07 | 02 07 02 07 00 01 0d 3e |........|.......>|
|00003b80| 00 06 00 00 0c 00 00 14 | 00 01 0d ff 00 06 00 00 |........|........|
|00003b90| 0c 00 00 14 00 01 0d 00 | 00 06 00 00 09 00 00 16 |........|........|
|00003ba0| 00 3c 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.< | |
|00003bb0| 2d 72 74 20 49 4e 49 54 | 3d 30 20 b6 20 20 20 20 |-rt INIT|=0 . |
|00003bc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 23 20 | | # |
|00003bd0| 72 65 73 6f 75 72 63 65 | 20 74 79 70 65 0d 00 06 |resource| type...|
|00003be0| 00 00 09 00 00 16 00 43 | 20 20 20 20 20 20 20 20 |.......C| |
|00003bf0| 20 20 20 20 20 20 2d 72 | 61 20 3d 31 36 20 b6 20 | -r|a =16 . |
|00003c00| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00003c10| 20 20 20 20 23 20 49 4e | 49 54 73 20 6d 75 73 74 | # IN|ITs must|
|00003c20| 20 62 65 20 6c 6f 63 6b | 65 64 0d ff 00 06 00 00 | be lock|ed......|
|00003c30| 09 00 00 16 00 4c 20 20 | 20 20 20 20 20 20 20 20 |.....L | |
|00003c40| 20 20 20 20 2d 6d 20 42 | 65 65 70 54 77 69 63 65 | -m B|eepTwice|
|00003c50| 20 b6 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | . | |
|00003c60| 20 20 23 20 6e 6f 74 65 | 20 74 68 61 74 20 43 20 | # note| that C |
|00003c70| 69 73 20 63 61 73 65 20 | 73 65 6e 73 69 74 69 76 |is case |sensitiv|
|00003c80| 65 0d 00 06 00 00 09 00 | 00 16 00 56 20 20 20 20 |e.......|...V |
|00003c90| 20 20 20 20 20 20 20 20 | 20 20 54 4e 31 31 30 49 | | TN110I|
|00003ca0| 6e 69 74 2e 63 2e 6f 20 | b6 20 20 20 20 20 20 20 |nit.c.o |. |
|00003cb0| 20 20 20 20 20 20 20 20 | 23 20 6c 69 6e 6b 20 74 | |# link t|
|00003cc0| 68 69 73 20 6f 62 6a 65 | 63 74 20 66 69 6c 65 20 |his obje|ct file |
|00003cd0| 66 69 72 73 74 21 21 21 | 20 74 68 65 6e 20 2e 2e |first!!!| then ..|
|00003ce0| 2e 0d 00 06 00 00 09 00 | 00 16 00 51 20 20 20 20 |........|...Q |
|00003cf0| 20 20 20 20 20 20 20 20 | 20 20 22 7b 43 4c 69 62 | | "{CLib|
|00003d00| 72 61 72 69 65 73 7d 22 | 43 49 6e 74 65 72 66 61 |raries}"|CInterfa|
|00003d10| 63 65 2e 6f 20 b6 20 20 | 23 20 6e 65 65 64 20 74 |ce.o . |# need t|
|00003d20| 68 69 73 20 66 6f 72 20 | 74 68 65 20 67 6c 75 65 |his for |the glue|
|00003d30| 20 66 6f 72 20 44 65 6c | 61 79 28 29 0d ff 00 06 | for Del|ay()....|
|00003d40| 00 00 09 00 00 16 00 00 | 01 e6 03 01 00 00 00 00 |........|........|
|00003d50| 01 d4 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d60| 00 00 00 00 00 00 00 00 | 00 01 0d 00 00 06 00 00 |........|........|
|00003d70| 0a 00 00 14 00 01 0d 00 | 00 06 00 00 09 00 00 16 |........|........|
|00003d80| 00 00 00 00 00 00 00 00 | 00 00 00 17 fa 5f 09 f4 |........|....._..|
|00003d90| df 50 f5 70 f5 21 d1 41 | 3c 10 f4 d6 3f 75 6a f0 |.P.p.!.A|<...?uj.|
|00003da0| d0 00 00 0c 00 00 0c 00 | 00 14 00 02 0c 02 00 14 |........|........|
|00003db0| 00 00 00 00 00 01 0d ff | 00 06 00 00 0c 00 00 14 |........|........|
|00003dc0| 00 41 fa 5f 09 f5 41 cb | 37 c6 a0 f4 e5 21 0f 23 |.A._..A.|7....!.#|
|00003dd0| f3 2f 34 f3 0f 2c 0f 55 | 87 3f 67 0f 4d f5 0f 57 |./4..,.U|.?g.M..W|
|00003de0| 0d 54 0f 4e 53 f2 df 4d | 6c 73 25 8b 0f 36 f3 8f |.T.NS..M|ls%..6..|
|00003df0| 30 f3 0f 30 0f 53 f7 98 | 21 f6 d8 f0 d0 00 00 06 |0..0.S..|!.......|
|00003e00| 00 00 0c 00 00 14 73 63 | 61 6c 0d ff 00 20 00 00 |......sc|al... ..|
|00003e10| 00 00 00 00 00 02 3f 31 | f3 1f 30 f2 ef 77 91 df |......?1|..0..w..|
|00003e20| 2e cf 2e 50 fb 6f 0d 00 | 00 06 00 00 09 00 00 16 |...P.o..|........|
|00003e30| 01 68 00 00 00 00 00 01 | 0d ff 00 06 00 00 0c 00 |.h......|........|
|00003e40| 00 14 00 f6 57 72 69 74 | 69 6e 67 20 61 20 27 57 |....Writ|ing a 'W|
|00003e50| 44 45 46 27 20 69 73 20 | 6c 69 6b 65 20 77 72 69 |DEF' is |like wri|
|00003e60| 74 69 6e 67 20 61 6e 20 | 27 49 4e 49 54 27 2c 20 |ting an |'INIT', |
|00003e70| 65 78 63 65 70 74 20 74 | 68 61 74 20 27 57 44 45 |except t|hat 'WDE|
|00003e80| 46 27 20 72 65 73 6f 75 | 72 63 65 73 20 68 61 76 |F' resou|rces hav|
|00003e90| 65 20 73 74 61 6e 64 61 | 72 64 20 68 65 61 64 65 |e standa|rd heade|
|00003ea0| 72 73 20 74 68 61 74 20 | 61 72 65 20 69 6e 63 6f |rs that |are inco|
|00003eb0| 72 70 6f 72 61 74 65 64 | 20 69 6e 74 6f 20 74 68 |rporated| into th|
|00003ec0| 65 20 63 6f 64 65 2e 20 | 20 49 6e 20 74 68 69 73 |e code. | In this|
|00003ed0| 20 65 78 61 6d 70 6c 65 | 2c 20 74 68 65 20 27 57 | example|, the 'W|
|00003ee0| 44 45 46 27 20 69 73 20 | 74 68 65 20 50 61 73 63 |DEF' is |the Pasc|
|00003ef0| 61 6c 20 4d 79 57 69 6e | 64 6f 77 44 65 66 2e 20 |al MyWin|dowDef. |
|00003f00| 20 54 6f 20 63 72 65 61 | 74 65 20 74 68 65 20 68 | To crea|te the h|
|00003f10| 65 61 64 65 72 2c 20 79 | 6f 75 20 75 73 65 20 61 |eader, y|ou use a|
|00003f20| 6e 20 61 73 73 65 6d 62 | 6c 79 20 6c 61 6e 67 75 |n assemb|ly langu|
|00003f30| 61 67 65 20 73 74 75 62 | 3a 0d 00 42 00 00 0c 00 |age stub|:..B....|
|00003f40| 00 14 00 0a 0c 00 00 16 | 00 10 0c 00 00 14 00 24 |........|.......$|
|00003f50| 0c 00 00 16 00 2a 0c 00 | 00 14 00 38 0c 00 00 16 |.....*..|...8....|
|00003f60| 00 3e 0c 00 00 14 00 9a | 0c 00 00 16 00 a0 0c 00 |.>......|........|
|00003f70| 00 14 00 af 0c 00 00 16 | 00 ba 0c 00 00 14 00 30 |........|.......0|
|00003f80| fa 5f 09 f4 93 87 91 0f | 4d 6c 73 25 8b f2 c0 f5 |._......|Mls%....|
|00003f90| 65 af 75 f6 d1 0f 56 f2 | c0 f5 4b 10 f5 32 64 20 |e.u...V.|..K..2d |
|00003fa0| f4 d6 36 f6 71 4f 0d 00 | 00 12 00 00 0c 00 00 14 |..6.qO..|........|
|00003fb0| 00 02 0c 02 00 14 00 12 | 0c 00 00 14 20 20 20 20 |........|.... |
|00003fc0| 4d 41 49 4e 00 2c 00 00 | 00 00 00 00 00 0f 22 f7 |MAIN.,..|......".|
|00003fd0| bf 43 f4 c7 f6 24 64 71 | 8f 7d f2 2f 43 f4 93 21 |.C...$dq|.}./C..!|
|00003fe0| 4d 6c 1f 2e 50 fb 6f 0d | 00 06 00 00 09 00 00 16 |Ml..P.o.|........|
|00003ff0| 6e 74 72 79 20 70 6f 69 | 6e 74 0d ff 00 06 00 00 |ntry poi|nt......|
|00004000| 09 00 00 16 00 59 20 20 | 20 20 20 20 20 20 20 20 |.....Y | |
|00004010| 20 20 20 20 20 20 20 20 | 49 4d 50 4f 52 54 20 4d | |IMPORT M|
|00004020| 79 57 69 6e 64 6f 77 44 | 65 66 20 20 20 20 20 20 |yWindowD|ef |
|00004030| 20 20 20 20 3b 20 6e 61 | 6d 65 20 6f 66 20 50 61 | ; na|me of Pa|
|00004040| 73 63 61 6c 20 46 55 4e | 43 54 49 4f 4e 20 74 68 |scal FUN|CTION th|
|00004050| 61 74 20 69 73 20 74 68 | 65 20 57 44 45 46 0d ff |at is th|e WDEF..|
|00004060| 00 06 00 00 09 00 00 16 | 00 59 20 20 20 20 20 20 |........|.Y |
|00004070| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004080| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004090| 20 20 20 20 20 20 20 20 | 3b 20 77 65 20 49 4d 50 | |; we IMP|
|000040a0| 4f 52 54 20 65 78 74 65 | 72 6e 61 6c 6c 79 20 72 |ORT exte|rnally r|
|000040b0| 65 66 65 72 65 6e 63 65 | 64 20 72 6f 75 74 69 6e |eference|d routin|
|000040c0| 65 73 0d ff 00 06 00 00 | 09 00 00 16 00 5a 20 20 |es......|.....Z |
|000040d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000040e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000040f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 3b 20 66 72 | | ; fr|
|00004100| 6f 6d 20 50 61 73 63 61 | 6c 20 28 69 6e 20 74 68 |om Pasca|l (in th|
|00004110| 69 73 20 63 61 73 65 2c | 20 6a 75 73 74 20 74 68 |is case,| just th|
|00004120| 69 73 20 6f 6e 65 29 0d | 00 06 00 00 09 00 00 16 |is one).|........|
|00004130| 00 5c 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.\ | |
|00004140| 20 20 20 20 42 52 41 2e | 53 20 20 20 20 40 30 20 | BRA.|S @0 |
|00004150| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004160| 3b 20 62 72 61 6e 63 68 | 20 61 72 6f 75 6e 64 20 |; branch| around |
|00004170| 74 68 65 20 68 65 61 64 | 65 72 20 74 6f 20 74 68 |the head|er to th|
|00004180| 65 20 61 63 74 75 61 6c | 20 63 6f 64 65 0d 00 06 |e actual| code...|
|00004190| 00 00 09 00 00 16 00 3b | 20 20 20 20 20 20 20 20 |.......;| |
|000041a0| 20 20 20 20 20 20 20 20 | 20 20 44 43 2e 57 20 20 | | DC.W |
|000041b0| 20 20 20 30 20 20 20 20 | 20 20 20 20 20 20 20 20 | 0 | |
|000041c0| 20 20 20 20 20 20 3b 20 | 66 6c 61 67 73 20 77 6f | ; |flags wo|
|000041d0| 72 64 0d 24 00 06 00 00 | 09 00 00 16 00 35 20 20 |rd.$....|.....5 |
|000041e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000041f0| 44 43 2e 42 20 20 20 20 | 20 27 57 44 45 46 27 20 |DC.B | 'WDEF' |
|00004200| 20 20 20 20 20 20 20 20 | 20 20 20 20 3b 20 74 79 | | ; ty|
|00004210| 70 65 0d 48 00 06 00 00 | 09 00 00 16 00 3a 20 20 |pe.H....|.....: |
|00004220| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004230| 44 43 2e 57 20 20 20 20 | 20 33 20 20 20 20 20 20 |DC.W | 3 |
|00004240| 20 20 20 20 20 20 20 20 | 20 20 20 20 3b 20 49 44 | | ; ID|
|00004250| 20 6e 75 6d 62 65 72 0d | 00 06 00 00 09 00 00 16 | number.|........|
|00004260| 00 38 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.8 | |
|00004270| 20 20 20 20 44 43 2e 57 | 20 20 20 20 20 30 20 20 | DC.W| 0 |
|00004280| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004290| 3b 20 76 65 72 73 69 6f | 6e 0d 00 06 00 00 09 00 |; versio|n.......|
|000042a0| 00 16 00 4b 20 20 20 20 | 20 20 20 40 30 20 20 20 |...K | @0 |
|000042b0| 20 20 20 20 20 20 4a 4d | 50 20 20 20 20 20 20 4d | JM|P M|
|000042c0| 79 57 69 6e 64 6f 77 44 | 65 66 20 20 20 20 20 20 |yWindowD|ef |
|000042d0| 20 20 3b 20 74 68 69 73 | 20 63 61 6c 6c 73 20 74 | ; this| calls t|
|000042e0| 68 65 20 50 61 73 63 61 | 6c 20 57 44 45 46 0d 43 |he Pasca|l WDEF.C|
|000042f0| 00 06 00 00 09 00 00 16 | 00 38 fa 5f 09 f4 93 87 |........|.8._....|
|00004300| 91 0f 4d 6c 73 25 8b f2 | c0 f5 65 af 75 f6 d1 0f |..Mls%..|..e.u...|
|00004310| 49 f4 9f 2c 0f 54 b1 0f | 53 f7 98 21 f6 d0 f5 21 |I..,.T..|S..!...!|
|00004320| 85 f7 54 c1 0f 46 7a 1f | 0d 00 00 12 00 00 0c 00 |..T..Fz.|........|
|00004330| 00 14 00 02 0c 02 00 14 | 00 12 0c 00 00 14 00 06 |........|........|
|00004340| 00 00 0c 00 00 14 01 07 | 4e 6f 77 20 66 6f 72 20 |........|Now for |
|00004350| 74 68 65 20 50 61 73 63 | 61 6c 20 73 6f 75 72 63 |the Pasc|al sourc|
|00004360| 65 20 66 6f 72 20 74 68 | 65 20 27 57 44 45 46 27 |e for th|e 'WDEF'|
|00004370| 2e 20 20 4f 6e 6c 79 20 | 74 68 65 20 73 68 65 6c |. Only |the shel|
|00004380| 6c 20 6f 66 20 77 68 61 | 74 20 6e 65 65 64 73 20 |l of wha|t needs |
|00004390| 74 6f 20 62 65 20 64 6f | 6e 65 20 69 73 20 6c 69 |to be do|ne is li|
|000043a0| 73 74 65 64 2c 20 74 68 | 65 20 61 63 74 75 61 6c |sted, th|e actual|
|000043b0| 20 63 6f 64 65 20 69 73 | 20 6c 65 66 74 20 61 73 | code is| left as|
|000043c0| 20 61 6e 20 65 78 65 72 | 63 69 73 65 20 66 6f 72 | an exer|cise for|
|000043d0| 20 74 68 65 20 72 65 61 | 64 65 72 20 28 66 6f 72 | the rea|der (for|
|000043e0| 20 66 75 72 74 68 65 72 | 20 69 6e 66 6f 72 6d 61 | further| informa|
|000043f0| 74 69 6f 6e 20 61 62 6f | 75 74 20 77 72 69 74 69 |tion abo|ut writi|
|00004400| 6e 67 20 61 20 27 57 44 | 45 46 27 2c 20 73 65 65 |ng a 'WD|EF', see|
|00004410| 20 49 6e 73 69 64 65 20 | 4d 61 63 69 6e 74 6f 73 | Inside |Macintos|
|00004420| 68 2c 20 56 6f 6c 75 6d | 65 20 49 2c 20 54 68 65 |h, Volum|e I, The|
|00004430| 20 57 69 6e 64 6f 77 20 | 4d 61 6e 61 67 65 72 20 | Window |Manager |
|00004440| 28 70 70 2e 20 32 39 37 | 2d 33 30 32 29 2e 0d 00 |(pp. 297|-302)...|
|00004450| 00 2a 00 00 0c 00 00 14 | 00 22 0c 00 00 16 00 28 |.*......|.".....(|
|00004460| 0c 00 00 14 00 bd 0c 00 | 00 16 00 c3 0c 00 00 14 |........|........|
|00004470| 00 c9 0c 02 00 14 00 d9 | 0c 00 00 14 00 32 fa 5f |........|.....2._|
|00004480| 09 f4 93 87 91 0f 4d 6c | 73 25 8b f2 c0 f5 65 af |......Ml|s%....e.|
|00004490| 75 f6 d1 0f 49 f4 9f 2c | 0f 54 b1 0f 53 1f 67 f6 |u...I..,|.T..S.g.|
|000044a0| d1 32 0f 4c 56 91 4f 0d | 00 12 00 00 0c 00 00 14 |.2.LV.O.|........|
|000044b0| 00 02 0c 02 00 14 00 12 | 0c 00 00 14 3b 0d 00 06 |........|....;...|
|000044c0| 00 00 09 00 00 16 00 01 | 0d 00 00 06 00 00 09 00 |........|........|
|000044d0| 00 16 00 11 20 20 20 20 | 20 20 20 49 4e 54 45 52 |.... | INTER|
|000044e0| 46 41 43 45 0d 00 00 06 | 00 00 09 00 00 16 00 01 |FACE....|........|
|000044f0| 0d 01 00 06 00 00 09 00 | 00 16 00 35 20 20 20 20 |........|...5 |
|00004500| 20 20 20 20 20 55 53 45 | 53 20 4d 65 6d 54 79 70 | USE|S MemTyp|
|00004510| 65 73 2c 20 51 75 69 63 | 6b 44 72 61 77 2c 20 4f |es, Quic|kDraw, O|
|00004520| 53 49 6e 74 66 2c 20 54 | 6f 6f 6c 49 6e 74 66 3b |SIntf, T|oolIntf;|
|00004530| 0d 00 00 06 00 00 09 00 | 00 16 00 01 0d 00 00 06 |........|........|
|00004540| 00 00 09 00 00 16 00 2b | 20 20 20 20 20 20 20 7b |.......+| {|
|00004550| 74 68 69 73 20 69 73 20 | 74 68 65 20 6f 6e 6c 79 |this is |the only|
|00004560| 20 65 78 74 65 72 6e 61 | 6c 20 72 6f 75 74 69 6e | externa|l routin|
|00004570| 65 7d 0d 00 00 06 00 00 | 09 00 00 16 00 58 20 20 |e}......|.....X |
|00004580| 20 20 20 20 20 20 20 46 | 55 4e 43 54 49 4f 4e 20 | F|UNCTION |
|00004590| 4d 79 57 69 6e 64 6f 77 | 44 65 66 28 76 61 72 43 |MyWindow|Def(varC|
|000045a0| 6f 64 65 3a 20 49 6e 74 | 65 67 65 72 3b 20 74 68 |ode: Int|eger; th|
|000045b0| 65 57 69 6e 64 6f 77 3a | 20 57 69 6e 64 6f 77 50 |eWindow:| WindowP|
|000045c0| 74 72 3b 20 6d 65 73 73 | 61 67 65 3a 20 49 6e 74 |tr; mess|age: Int|
|000045d0| 65 67 65 72 3b 0d 00 06 | 00 00 09 00 00 16 00 54 |eger;...|.......T|
|000045e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000045f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 70 61 | | pa|
|00004600| 72 61 6d 3a 20 4c 6f 6e | 67 49 6e 74 29 3a 20 4c |ram: Lon|gInt): L|
|00004610| 6f 6e 67 49 6e 74 3b 20 | 7b 41 73 20 64 65 66 69 |ongInt; |{As defi|
|00004620| 6e 65 64 20 69 6e 20 49 | 4d 20 70 2e 20 49 2d 32 |ned in I|M p. I-2|
|00004630| 39 39 7d 0d 00 06 00 00 | 09 00 00 16 00 01 0d 00 |99}.....|........|
|00004640| 00 06 00 00 09 00 00 16 | 00 2d 01 dd 03 00 00 00 |........|.-......|
|00004650| 00 1b 02 07 02 07 02 07 | 02 07 02 07 02 07 02 07 |........|........|
|00004660| 02 07 02 07 02 07 02 07 | 02 07 00 01 0d ff 00 06 |........|........|
|00004670| 00 00 09 00 00 16 00 01 | 0d ff 00 06 00 00 09 00 |........|........|
|00004680| 00 16 00 12 0c 00 00 14 | 00 00 00 00 00 00 00 20 |........|....... |
|00004690| 00 01 0d 00 00 06 00 00 | 09 00 00 16 11 01 ff 96 |........|........|
|000046a0| 00 01 0d 00 00 06 00 00 | 09 00 00 16 00 58 20 20 |........|.....X |
|000046b0| 20 20 20 20 20 20 20 46 | 55 4e 43 54 49 4f 4e 20 | F|UNCTION |
|000046c0| 4d 79 57 69 6e 64 6f 77 | 44 65 66 28 76 61 72 43 |MyWindow|Def(varC|
|000046d0| 6f 64 65 3a 20 49 6e 74 | 65 67 65 72 3b 20 74 68 |ode: Int|eger; th|
|000046e0| 65 57 69 6e 64 6f 77 3a | 20 57 69 6e 64 6f 77 50 |eWindow:| WindowP|
|000046f0| 74 72 3b 20 6d 65 73 73 | 61 67 65 3a 20 49 6e 74 |tr; mess|age: Int|
|00004700| 65 67 65 72 3b 0d 00 06 | 00 00 09 00 00 16 00 38 |eger;...|.......8|
|00004710| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00004720| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 70 61 | | pa|
|00004730| 72 61 6d 3a 20 4c 6f 6e | 67 49 6e 74 29 3a 20 4c |ram: Lon|gInt): L|
|00004740| 6f 6e 67 49 6e 74 3b 0d | 00 06 00 00 09 00 00 16 |ongInt;.|........|
|00004750| 00 01 0d ff 00 06 00 00 | 09 00 00 16 00 10 20 20 |........|...... |
|00004760| 20 20 20 20 20 20 20 20 | 20 54 59 50 45 0d 00 06 | | TYPE...|
|00004770| 00 00 09 00 00 16 00 1e | 20 20 20 20 20 20 20 20 |........| |
|00004780| 20 20 20 20 20 52 65 63 | 74 50 74 72 20 3d 20 5e | Rec|tPtr = ^|
|00004790| 52 65 63 74 3b 0d 00 06 | 00 00 09 00 00 16 00 01 |Rect;...|........|
|000047a0| 0d 5e 00 06 00 00 09 00 | 00 16 00 0f 20 20 20 20 |.^......|.... |
|000047b0| 20 20 20 20 20 20 20 56 | 41 52 0d ff 00 06 00 00 | V|AR......|
|000047c0| 09 00 00 16 00 21 20 20 | 20 20 20 20 20 20 20 20 |.....! | |
|000047d0| 20 20 20 61 52 65 63 74 | 50 74 72 20 3a 20 52 65 | aRect|Ptr : Re|
|000047e0| 63 74 50 74 72 3b 0d ff | 00 06 00 00 09 00 00 16 |ctPtr;..|........|
|000047f0| 00 01 0d ff 00 06 00 00 | 09 00 00 16 00 47 20 20 |........|.....G |
|00004800| 20 20 20 20 20 20 20 7b | 68 65 72 65 20 61 72 65 | {|here are|
|00004810| 20 74 68 65 20 72 6f 75 | 74 69 6e 65 73 20 74 68 | the rou|tines th|
|00004820| 61 74 20 61 72 65 20 64 | 69 73 70 61 74 63 68 65 |at are d|ispatche|
|00004830| 64 20 74 6f 20 62 79 20 | 4d 79 57 69 6e 64 6f 77 |d to by |MyWindow|
|00004840| 44 65 66 7d 0d ff 00 06 | 00 00 09 00 00 16 00 01 |Def}....|........|
|00004850| 0d 13 00 06 00 00 09 00 | 00 16 00 45 20 20 20 20 |........|...E |
|00004860| 20 20 20 20 20 20 20 50 | 52 4f 43 45 44 55 52 45 | P|ROCEDURE|
|00004870| 20 44 6f 44 72 61 77 28 | 74 68 65 57 69 6e 64 3a | DoDraw(|theWind:|
|00004880| 20 57 69 6e 64 6f 77 50 | 74 72 3b 20 44 72 61 77 | WindowP|tr; Draw|
|00004890| 50 61 72 61 6d 3a 20 4c | 6f 6e 67 49 6e 74 29 3b |Param: L|ongInt);|
|000048a0| 0d ff 00 06 00 00 09 00 | 00 16 00 1c 20 20 20 20 |........|.... |
|000048b0| 20 20 20 20 20 20 20 20 | 20 42 45 47 49 4e 20 7b | | BEGIN {|
|000048c0| 44 6f 44 72 61 77 7d 0d | 00 06 00 00 09 00 00 16 |DoDraw}.|........|
|000048d0| 00 23 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |.# | |
|000048e0| 20 7b 46 69 6c 6c 20 69 | 6e 20 74 68 65 20 63 6f | {Fill i|n the co|
|000048f0| 64 65 21 7d 0d ff 00 06 | 00 00 09 00 00 16 00 1b |de!}....|........|
|00004900| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 45 4e 44 | | END|
|00004910| 3b 20 7b 44 6f 44 72 61 | 77 7d 0d ff 00 06 00 00 |; {DoDra|w}......|
|00004920| 09 00 00 16 00 01 0d ff | 00 06 00 00 09 00 00 16 |........|........|
|00004930| 00 4b 20 20 20 20 20 20 | 20 20 20 20 20 46 55 4e |.K | FUN|
|00004940| 43 54 49 4f 4e 20 44 6f | 48 69 74 28 74 68 65 57 |CTION Do|Hit(theW|
|00004950| 69 6e 64 3a 20 57 69 6e | 64 6f 77 50 74 72 3b 20 |ind: Win|dowPtr; |
|00004960| 74 68 65 50 61 72 61 6d | 3a 20 4c 6f 6e 67 49 6e |theParam|: LongIn|
|00004970| 74 29 3a 20 4c 6f 6e 67 | 49 6e 74 3b 0d 1f 00 06 |t): Long|Int;....|
|00004980| 00 00 09 00 00 16 00 1b | 20 20 20 20 20 20 20 20 |........| |
|00004990| 20 20 20 20 20 42 45 47 | 49 4e 20 7b 44 6f 48 69 | BEG|IN {DoHi|
|000049a0| 74 7d 0d ff 00 06 00 00 | 09 00 00 16 00 32 20 20 |t}......|.....2 |
|000049b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 7b 43 6f | | {Co|
|000049c0| 64 65 20 66 6f 72 20 74 | 68 69 73 20 46 55 4e 43 |de for t|his FUNC|
|000049d0| 54 49 4f 4e 20 67 6f 65 | 73 20 68 65 72 65 7d 0d |TION goe|s here}.|
|000049e0| 00 06 00 00 09 00 00 16 | 00 1b 20 20 20 20 20 20 |........|.. |
|000049f0| 20 20 20 20 20 20 20 45 | 4e 44 3b 20 20 7b 44 6f | E|ND; {Do|
|00004a00| 48 69 74 7d 0d 30 00 06 | 00 00 09 00 00 16 00 01 |Hit}.0..|........|
|00004a10| 0d ff 00 06 00 00 09 00 | 00 16 00 35 20 20 20 20 |........|...5 |
|00004a20| 20 20 20 20 20 20 20 50 | 52 4f 43 45 44 55 52 45 | P|ROCEDURE|
|00004a30| 20 44 6f 43 61 6c 63 52 | 67 6e 73 28 74 68 65 57 | DoCalcR|gns(theW|
|00004a40| 69 6e 64 3a 20 57 69 6e | 64 6f 77 50 74 72 29 3b |ind: Win|dowPtr);|
|00004a50| 0d ff 00 06 00 00 09 00 | 00 16 00 20 20 20 20 20 |........|... |
|00004a60| 20 20 20 20 20 20 20 20 | 20 42 45 47 49 4e 20 7b | | BEGIN {|
|00004a70| 44 6f 43 61 6c 63 52 67 | 6e 73 7d 0d 00 06 00 00 |DoCalcRg|ns}.....|
|00004a80| 09 00 00 16 00 33 20 20 | 20 20 20 20 20 20 20 20 |.....3 | |
|00004a90| 20 20 20 20 20 7b 43 6f | 64 65 20 66 6f 72 20 74 | {Co|de for t|
|00004aa0| 68 69 73 20 50 52 4f 43 | 45 44 55 52 45 20 67 6f |his PROC|EDURE go|
|00004ab0| 65 73 20 68 65 72 65 7d | 0d ff 00 06 00 00 09 00 |es here}|........|
|00004ac0| 00 16 00 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |... | |
|00004ad0| 20 45 4e 44 3b 20 20 7b | 44 6f 43 61 6c 63 52 67 | END; {|DoCalcRg|
|00004ae0| 6e 73 7d 0d 00 06 00 00 | 09 00 00 16 00 01 0d ff |ns}.....|........|
|00004af0| 00 06 00 00 09 00 00 16 | 00 44 20 20 20 20 20 20 |........|.D |
|00004b00| 20 20 20 20 20 50 52 4f | 43 45 44 55 52 45 20 44 | PRO|CEDURE D|
|00004b10| 6f 47 72 6f 77 28 74 68 | 65 57 69 6e 64 3a 20 57 |oGrow(th|eWind: W|
|00004b20| 69 6e 64 6f 77 50 74 72 | 3b 20 74 68 65 47 72 6f |indowPtr|; theGro|
|00004b30| 77 52 65 63 74 3a 20 52 | 65 63 74 29 3b 0d 00 06 |wRect: R|ect);...|
|00004b40| 00 00 09 00 00 16 00 1c | 20 20 20 20 20 20 20 20 |........| |
|00004b50| 20 20 20 20 20 42 45 47 | 49 4e 20 7b 44 6f 47 72 | BEG|IN {DoGr|
|00004b60| 6f 77 7d 0d 00 06 00 00 | 09 00 00 16 00 33 20 20 |ow}.....|.....3 |
|00004b70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 7b 43 6f | | {Co|
|00004b80| 64 65 20 66 6f 72 20 74 | 68 69 73 20 50 52 4f 43 |de for t|his PROC|
|00004b90| 45 44 55 52 45 20 67 6f | 65 73 20 68 65 72 65 7d |EDURE go|es here}|
|00004ba0| 0d ff 00 06 00 00 09 00 | 00 16 00 1c 20 20 20 20 |........|.... |
|00004bb0| 20 20 20 20 20 20 20 20 | 20 45 4e 44 3b 20 20 7b | | END; {|
|00004bc0| 44 6f 47 72 6f 77 7d 0d | 00 06 00 00 09 00 00 16 |DoGrow}.|........|
|00004bd0| 00 01 0d ff 00 06 00 00 | 09 00 00 16 00 35 20 20 |........|.....5 |
|00004be0| 20 20 20 20 20 20 20 20 | 20 50 52 4f 43 45 44 55 | | PROCEDU|
|00004bf0| 52 45 20 44 6f 44 72 61 | 77 53 69 7a 65 28 74 68 |RE DoDra|wSize(th|
|00004c00| 65 57 69 6e 64 3a 20 57 | 69 6e 64 6f 77 50 74 72 |eWind: W|indowPtr|
|00004c10| 29 3b 0d ff 00 06 00 00 | 09 00 00 16 00 20 20 20 |);......|..... |
|00004c20| 20 20 20 20 20 20 20 20 | 20 20 20 42 45 47 49 4e | | BEGIN|
|00004c30| 20 7b 44 6f 44 72 61 77 | 53 69 7a 65 7d 0d 00 06 | {DoDraw|Size}...|
|00004c40| 00 00 09 00 00 16 00 33 | 20 20 20 20 20 20 20 20 |.......3| |
|00004c50| 20 20 20 20 20 20 20 7b | 43 6f 64 65 20 66 6f 72 | {|Code for|
|00004c60| 20 74 68 69 73 20 50 52 | 4f 43 45 44 55 52 45 20 | this PR|OCEDURE |
|00004c70| 67 6f 65 73 20 68 65 72 | 65 7d 0d ff 00 06 00 00 |goes her|e}......|
|00004c80| 09 00 00 16 00 20 20 20 | 20 20 20 20 20 20 20 20 |..... | |
|00004c90| 20 20 20 45 4e 44 3b 20 | 20 7b 44 6f 44 72 61 77 | END; | {DoDraw|
|00004ca0| 53 69 7a 65 7d 0d 00 06 | 00 00 09 00 00 16 00 01 |Size}...|........|
|00004cb0| 0d ff 00 06 00 00 09 00 | 00 16 00 27 7b 6e 6f 77 |........|...'{now|
|00004cc0| 20 66 6f 72 20 74 68 65 | 20 6d 61 69 6e 20 62 6f | for the| main bo|
|00004cd0| 64 79 20 74 6f 20 4d 79 | 57 69 6e 64 6f 77 44 65 |dy to My|WindowDe|
|00004ce0| 66 7d 0d ff 00 06 00 00 | 09 00 00 16 00 20 20 20 |f}......|..... |
|00004cf0| 20 20 20 20 20 20 20 42 | 45 47 49 4e 20 20 7b 20 | B|EGIN { |
|00004d00| 4d 79 57 69 6e 64 6f 77 | 44 65 66 20 7d 0d 00 06 |MyWindow|Def }...|
|00004d10| 00 00 09 00 00 16 00 47 | 20 20 20 20 20 20 20 20 |.......G| |
|00004d20| 20 7b 63 61 73 65 20 6f | 75 74 20 6f 6e 20 74 68 | {case o|ut on th|
|00004d30| 65 20 6d 65 73 73 61 67 | 65 20 61 6e 64 20 6a 75 |e messag|e and ju|
|00004d40| 6d 70 20 74 6f 20 74 68 | 65 20 61 70 70 72 6f 70 |mp to th|e approp|
|00004d50| 72 69 61 74 65 20 72 6f | 75 74 69 6e 65 7d 0d 00 |riate ro|utine}..|
|00004d60| 00 06 00 00 09 00 00 16 | 00 3e 20 20 20 20 20 20 |........|.> |
|00004d70| 20 20 20 20 20 4d 79 57 | 69 6e 64 6f 77 44 65 66 | MyW|indowDef|
|00004d80| 20 3a 3d 20 30 3b 20 7b | 69 6e 69 74 69 61 6c 69 | := 0; {|initiali|
|00004d90| 7a 65 20 74 68 65 20 66 | 75 6e 63 74 69 6f 6e 20 |ze the f|unction |
|00004da0| 72 65 73 75 6c 74 7d 0d | 00 06 00 00 09 00 00 16 |result}.|........|
|00004db0| 00 01 0d 48 00 06 00 00 | 09 00 00 16 00 1b 20 20 |...H....|...... |
|00004dc0| 20 20 20 20 20 20 20 20 | 20 43 41 53 45 20 6d 65 | | CASE me|
|00004dd0| 73 73 61 67 65 20 4f 46 | 0d 00 00 06 00 00 09 00 |ssage OF|........|
|00004de0| 00 16 00 01 0d ff 00 06 | 00 00 09 00 00 16 00 2a |........|.......*|
|00004df0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 77 44 72 | | wDr|
|00004e00| 61 77 3a 20 20 7b 20 64 | 72 61 77 20 77 69 6e 64 |aw: { d|raw wind|
|00004e10| 6f 77 20 66 72 61 6d 65 | 7d 0d 00 06 00 00 09 00 |ow frame|}.......|
|00004e20| 00 16 00 28 20 20 20 20 | 20 20 20 20 20 20 20 20 |...( | |
|00004e30| 20 20 20 44 6f 44 72 61 | 77 28 74 68 65 57 69 6e | DoDra|w(theWin|
|00004e40| 64 6f 77 2c 70 61 72 61 | 6d 29 3b 0d 00 06 00 00 |dow,para|m);.....|
|00004e50| 09 00 00 16 00 01 0d fb | 00 06 00 00 09 00 00 16 |........|........|
|00004e60| 00 42 20 20 20 20 20 20 | 20 20 20 20 20 20 20 77 |.B | w|
|00004e70| 48 69 74 3a 20 20 20 7b | 20 74 65 6c 6c 20 77 68 |Hit: {| tell wh|
|00004e80| 61 74 20 72 65 67 69 6f | 6e 20 74 68 65 20 6d 6f |at regio|n the mo|
|00004e90| 75 73 65 20 77 61 73 20 | 70 72 65 73 73 65 64 20 |use was |pressed |
|00004ea0| 69 6e 7d 0d 00 06 00 00 | 09 00 00 16 00 36 20 20 |in}.....|.....6 |
|00004eb0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 4d 79 57 | | MyW|
|00004ec0| 69 6e 64 6f 77 44 65 66 | 20 3a 3d 20 44 6f 48 69 |indowDef| := DoHi|
|00004ed0| 74 28 74 68 65 57 69 6e | 64 6f 77 2c 70 61 72 61 |t(theWin|dow,para|
|00004ee0| 6d 29 3b 0d 00 06 00 00 | 09 00 00 16 00 01 0d 43 |m);.....|.......C|
|00004ef0| 00 06 00 00 09 00 00 16 | 00 3b 20 20 20 20 20 20 |........|.; |
|00004f00| 20 20 20 20 20 20 20 77 | 43 61 6c 63 52 67 6e 73 | w|CalcRgns|
|00004f10| 3a 20 7b 20 63 61 6c 63 | 75 6c 61 74 65 20 73 74 |: { calc|ulate st|
|00004f20| 72 75 63 74 52 67 6e 20 | 61 6e 64 20 63 6f 6e 74 |ructRgn |and cont|
|00004f30| 52 67 6e 7d 0d ef 00 06 | 00 00 09 00 00 16 00 26 |Rgn}....|.......&|
|00004f40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 44 | | D|
|00004f50| 6f 43 61 6c 63 52 67 6e | 73 28 74 68 65 57 69 6e |oCalcRgn|s(theWin|
|00004f60| 64 6f 77 29 3b 0d 00 06 | 00 00 09 00 00 16 00 01 |dow);...|........|
|00004f70| 0d ff 00 06 00 00 09 00 | 00 16 00 39 20 20 20 20 |........|...9 |
|00004f80| 20 20 20 20 20 20 20 20 | 20 77 4e 65 77 3a 20 20 | | wNew: |
|00004f90| 20 7b 20 64 6f 20 61 6e | 79 20 61 64 64 69 74 69 | { do an|y additi|
|00004fa0| 6f 6e 61 6c 20 69 6e 69 | 74 69 61 6c 69 7a 61 74 |onal ini|tializat|
|00004fb0| 69 6f 6e 7d 0d 00 00 06 | 00 00 09 00 00 16 00 2b |ion}....|.......+|
|00004fc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 7b | | {|
|00004fd0| 20 77 65 20 64 6f 6e d5 | 74 20 6e 65 65 64 20 74 | we don.|t need t|
|00004fe0| 6f 20 64 6f 20 61 6e 79 | 7d 20 0d 00 00 06 00 00 |o do any|} ......|
|00004ff0| 09 00 00 16 00 11 20 20 | 20 20 20 20 20 20 20 20 |...... | |
|00005000| 20 20 20 20 20 3b 0d 00 | 00 06 00 00 09 00 00 16 | ;..|........|
|00005010| 00 01 0d 00 00 06 00 00 | 09 00 00 16 00 3c 20 20 |........|.....< |
|00005020| 20 20 20 20 20 20 20 20 | 20 20 20 77 44 69 73 70 | | wDisp|
|00005030| 6f 73 65 3a 7b 20 64 6f | 20 61 6e 79 20 61 64 64 |ose:{ do| any add|
|00005040| 69 74 69 6f 6e 61 6c 20 | 64 69 73 70 6f 73 61 6c |itional |disposal|
|00005050| 20 61 63 74 69 6f 6e 73 | 7d 0d 00 06 00 00 09 00 | actions|}.......|
|00005060| 00 16 00 2a 20 20 20 20 | 20 20 20 20 20 20 20 20 |...* | |
|00005070| 20 20 20 7b 20 77 65 20 | 64 6f 6e d5 74 20 6e 65 | { we |don.t ne|
|00005080| 65 64 20 74 6f 20 64 6f | 20 61 6e 79 7d 0d 00 06 |ed to do| any}...|
|00005090| 00 00 09 00 00 16 00 11 | 20 20 20 20 20 20 20 20 |........| |
|000050a0| 20 20 20 20 20 20 20 3b | 0d 00 00 06 00 00 09 00 | ;|........|
|000050b0| 00 16 00 01 0d 00 00 06 | 00 00 09 00 00 16 00 2b |........|.......+|
|000050c0| 00 00 00 0f 76 57 90 f4 | 45 f4 74 5f 77 f2 8f 57 |....vW..|E.t_w..W|
|000050d0| 73 9f 54 5f 47 45 f7 7f | 2c 2b 1f 47 45 f7 7f 52 |s.T_GE..|,+.GE..R|
|000050e0| 1c 2f 29 f0 d0 00 00 06 | 00 00 09 00 00 16 65 7d |./).....|......e}|
|000050f0| 0d 00 00 06 00 00 09 00 | 00 16 00 15 20 20 20 20 |........|.... |
|00005100| 20 20 20 20 20 20 20 20 | 20 20 20 42 45 47 49 4e | | BEGIN|
|00005110| 0d 00 00 06 00 00 09 00 | 00 16 00 2d 20 20 20 20 |........|...- |
|00005120| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 61 52 65 | | aRe|
|00005130| 63 74 50 74 72 20 3a 3d | 20 52 65 63 74 50 74 72 |ctPtr :=| RectPtr|
|00005140| 28 70 61 72 61 6d 29 3b | 0d 00 00 06 00 00 09 00 |(param);|........|
|00005150| 00 16 00 2e 20 20 20 20 | 20 20 20 20 20 20 20 20 |.... | |
|00005160| 20 20 20 20 20 44 6f 47 | 72 6f 77 28 74 68 65 57 | DoG|row(theW|
|00005170| 69 6e 64 6f 77 2c 61 52 | 65 63 74 50 74 72 5e 29 |indow,aR|ectPtr^)|
|00005180| 3b 0d 00 06 00 00 09 00 | 00 16 00 21 20 20 20 20 |;.......|...! |
|00005190| 20 20 20 20 20 20 20 20 | 20 20 20 45 4e 44 3b 20 | | END; |
|000051a0| 7b 43 41 53 45 20 77 47 | 72 6f 77 7d 0d 00 00 06 |{CASE wG|row}....|
|000051b0| 00 00 09 00 00 16 00 01 | 0d 00 00 06 00 00 09 00 |........|........|
|000051c0| 00 16 00 3b 20 20 20 20 | 20 20 20 20 20 20 20 20 |...; | |
|000051d0| 20 77 44 72 61 77 47 49 | 63 6f 6e 3a 7b 20 64 72 | wDrawGI|con:{ dr|
|000051e0| 61 77 20 53 69 7a 65 20 | 62 6f 78 20 69 6e 20 63 |aw Size |box in c|
|000051f0| 6f 6e 74 65 6e 74 20 72 | 65 67 69 6f 6e 7d 0d 00 |ontent r|egion}..|
|00005200| 00 06 00 00 09 00 00 16 | 00 26 20 20 20 20 20 20 |........|.& |
|00005210| 20 20 20 20 20 20 20 20 | 20 44 6f 44 72 61 77 53 | | DoDrawS|
|00005220| 69 7a 65 28 74 68 65 57 | 69 6e 64 6f 77 29 3b 0d |ize(theW|indow);.|
|00005230| 00 06 00 00 09 00 00 16 | 00 01 0d 00 00 06 00 00 |........|........|
|00005240| 09 00 00 16 00 17 20 20 | 20 20 20 20 20 20 20 20 |...... | |
|00005250| 20 45 4e 44 3b 20 7b 43 | 41 53 45 7d 0d ff 00 06 | END; {C|ASE}....|
|00005260| 00 00 09 00 00 16 00 1c | 20 20 20 20 20 20 20 20 |........| |
|00005270| 20 45 4e 44 3b 20 7b 4d | 79 57 69 6e 64 6f 77 44 | END; {M|yWindowD|
|00005280| 65 66 7d 0d 00 06 00 00 | 09 00 00 16 00 31 00 00 |ef}.....|.....1..|
|00005290| 00 00 00 00 0f 2f f2 a0 | c5 91 0d 54 0f 44 5f 44 |...../..|...T.D_D|
|000052a0| 46 f7 7f 53 7f 7a 10 f6 | 75 18 0b 14 10 f2 af 2f |F..S.z..|u....../|
|000052b0| f0 d0 00 06 00 00 09 00 | 00 16 00 d8 00 fc 01 20 |........|....... |
|000052c0| 01 44 01 68 00 00 00 00 | 00 01 0d 00 00 06 00 00 |.D.h....|........|
|000052d0| 09 00 00 16 00 45 46 6f | 6c 6c 6f 77 69 6e 67 20 |.....EFo|llowing |
|000052e0| 61 72 65 20 74 68 65 20 | 4d 50 57 20 73 68 65 6c |are the |MPW shel|
|000052f0| 6c 20 63 6f 6d 6d 61 6e | 64 73 20 6e 65 63 65 73 |l comman|ds neces|
|00005300| 73 61 72 79 20 74 6f 20 | 62 75 69 6c 64 20 74 68 |sary to |build th|
|00005310| 69 73 20 27 57 44 45 46 | 27 3a 0d ff 00 12 00 00 |is 'WDEF|':......|
|00005320| 0c 00 00 14 00 3d 0c 00 | 00 16 00 43 0c 00 00 14 |.....=..|...C....|
|00005330| 00 43 00 00 00 00 00 00 | 00 02 3f 31 f3 1f 30 f2 |.C......|..?1..0.|
|00005340| ef 57 f4 4f 45 f4 6f 48 | 16 91 4f 2e 6f 2e 50 fb |.W.OE.oH|..O.o.P.|
|00005350| 60 0f 23 0f 6d f7 58 20 | a7 3f 6b 0f 77 72 b0 2b |`.#.m.X |.?k.wr.+|
|00005360| 78 0d 74 82 f0 d0 00 06 | 00 00 09 00 00 16 4d 79 |x.t.....|......My|
|00005370| 57 44 45 46 2e 70 0d ff | 00 06 00 00 09 00 00 16 |WDEF.p..|........|
|00005380| 00 14 20 20 20 20 20 20 | 20 61 73 6d 20 4d 79 57 |.. | asm MyW|
|00005390| 44 45 46 2e 61 0d 00 06 | 00 00 09 00 00 16 00 1c |DEF.a...|........|
|000053a0| 20 20 20 20 20 20 20 6c | 69 6e 6b 20 20 20 20 2d | l|ink -|
|000053b0| 72 74 20 57 44 45 46 3d | 33 20 b6 0d 00 06 00 00 |rt WDEF=|3 ......|
|000053c0| 09 00 00 16 00 38 20 20 | 20 20 20 20 20 20 20 20 |.....8 | |
|000053d0| 20 20 20 20 20 4d 79 57 | 44 45 46 2e 61 2e 6f 20 | MyW|DEF.a.o |
|000053e0| b6 20 23 20 4d 55 53 54 | 20 6c 69 6e 6b 20 77 69 |. # MUST| link wi|
|000053f0| 74 68 20 74 68 69 73 20 | 66 69 72 73 74 0d 00 06 |th this |first...|
|00005400| 00 00 09 00 00 16 00 1c | 20 20 20 20 20 20 20 20 |........| |
|00005410| 20 20 20 20 20 20 20 4d | 79 57 44 45 46 2e 70 2e | M|yWDEF.p.|
|00005420| 6f 20 b6 0d 00 06 00 00 | 09 00 00 16 00 2a 20 20 |o ......|.....* |
|00005430| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 22 7b 4c | | "{L|
|00005440| 69 62 72 61 72 69 65 73 | 7d 22 49 6e 74 65 72 66 |ibraries|}"Interf|
|00005450| 61 63 65 2e 6f 20 b6 0d | 00 06 00 00 09 00 00 16 |ace.o ..|........|
|00005460| 00 1b 00 00 00 0f 7b 00 | f2 ff 2a 0f 44 5f 44 46 |......{.|..*.D_DF|
|00005470| f7 7f 53 7f 7a 10 f2 af | 2f f0 d0 00 00 06 00 00 |..S.z...|/.......|
|00005480| 09 00 00 16 00 00 00 21 | 00 00 00 0f 57 73 95 f7 |.......!|....Ws..|
|00005490| 7f 50 24 00 00 f5 77 39 | f5 45 f4 44 6f 77 f3 b0 |.P$...w9|.E.Dow..|
|000054a0| f0 d0 00 06 00 00 09 00 | 00 16 00 06 00 00 0c 00 |........|........|
|000054b0| 00 14 00 83 4e 6f 74 69 | 63 65 20 74 68 61 74 20 |....Noti|ce that |
|000054c0| 79 6f 75 20 64 6f 20 6e | 6f 74 20 6e 65 65 64 20 |you do n|ot need |
|000054d0| 74 68 65 20 2d 6d 20 6f | 70 74 69 6f 6e 3b 20 73 |the -m o|ption; s|
|000054e0| 69 6e 63 65 20 4d 79 57 | 44 45 46 2e 61 2e 6f 20 |ince MyW|DEF.a.o |
|000054f0| 63 6f 6e 74 61 69 6e 73 | 20 74 68 65 20 6d 61 69 |contains| the mai|
|00005500| 6e 20 65 6e 74 72 79 20 | 70 6f 69 6e 74 2c 20 74 |n entry |point, t|
|00005510| 68 65 20 6c 69 6e 6b 65 | 72 20 6b 6e 6f 77 73 20 |he linke|r knows |
|00005520| 77 68 61 74 20 74 6f 20 | 73 74 72 69 70 20 61 67 |what to |strip ag|
|00005530| 61 69 6e 73 74 2e 0d ff | 00 1e 00 00 0c 00 00 14 |ainst...|........|
|00005540| 00 13 0c 01 00 14 00 16 | 0c 00 00 14 00 20 0c 00 |........|..... ..|
|00005550| 00 16 00 22 0c 00 00 14 | 00 01 0d ff 00 06 00 00 |..."....|........|
|00005560| 0c 00 00 14 00 1b 54 68 | 61 74 d5 73 20 61 6c 6c |......Th|at.s all|
|00005570| 20 74 68 65 72 65 20 69 | 73 20 74 6f 20 69 74 2e | there i|s to it.|
|00005580| 0d ff 00 06 00 00 0c 00 | 00 14 00 01 0d ff 00 06 |........|........|
|00005590| 00 00 0c 00 00 14 00 23 | 00 00 00 0f 76 57 90 f4 |.......#|....vW..|
|000055a0| 45 f4 44 6f 77 f5 37 f7 | a1 f2 8f 57 73 9f 54 5f |E.Dow.7.|...Ws.T_|
|000055b0| 44 46 f7 7f 29 f0 d0 00 | 00 06 00 00 09 00 00 16 |DF..)...|........|
|000055c0| 00 00 00 00 00 2d 00 00 | 00 00 00 00 0f 2f f2 a0 |.....-..|...../..|
|000055d0| c5 91 0d 54 0f 44 5f 47 | 45 f7 70 f6 75 18 0b 14 |...T.D_G|E.p.u...|
|000055e0| 10 f2 af 2f f0 d0 00 06 | 00 00 09 00 00 16 00 24 |.../....|.......$|
|000055f0| 00 48 00 6c 00 90 00 b4 | 00 d8 00 fc 01 20 01 44 |.H.l....|..... .D|
|00005600| 01 68 00 00 00 00 00 01 | 0d ff 00 06 00 00 0c 00 |.h......|........|
|00005610| 00 14 01 19 57 72 69 74 | 69 6e 67 20 61 20 27 57 |....Writ|ing a 'W|
|00005620| 44 45 46 27 20 69 6e 20 | 4d 50 57 20 43 20 69 73 |DEF' in |MPW C is|
|00005630| 20 76 65 72 79 20 73 69 | 6d 69 6c 61 72 20 74 6f | very si|milar to|
|00005640| 20 77 72 69 74 69 6e 67 | 20 6f 6e 65 20 69 6e 20 | writing| one in |
|00005650| 50 61 73 63 61 6c 2e 20 | 20 59 6f 75 20 63 61 6e |Pascal. | You can|
|00005660| 20 75 73 65 20 74 68 65 | 20 73 61 6d 65 20 61 73 | use the| same as|
|00005670| 73 65 6d 62 6c 79 20 6c | 61 6e 67 75 61 67 65 20 |sembly l|anguage |
|00005680| 68 65 61 64 65 72 2c 20 | 61 6e 64 20 61 6c 6c 20 |header, |and all |
|00005690| 79 6f 75 20 6e 65 65 64 | 20 74 6f 20 6d 61 6b 65 |you need| to make|
|000056a0| 20 73 75 72 65 20 6f 66 | 20 69 73 20 74 68 61 74 | sure of| is that|
|000056b0| 20 74 68 65 20 6d 61 69 | 6e 20 64 69 73 70 61 74 | the mai|n dispat|
|000056c0| 63 68 20 72 6f 75 74 69 | 6e 65 20 28 69 6e 20 74 |ch routi|ne (in t|
|000056d0| 68 69 73 20 63 61 73 65 | 3a 20 4d 79 57 69 6e 64 |his case|: MyWind|
|000056e0| 6f 77 44 65 66 29 20 69 | 73 20 66 69 72 73 74 20 |owDef) i|s first |
|000056f0| 69 6e 20 79 6f 75 72 20 | 73 6f 75 72 63 65 20 66 |in your |source f|
|00005700| 69 6c 65 2e 20 20 48 65 | 72 65 d5 73 20 74 68 65 |ile. He|re.s the|
|00005710| 20 73 61 6d 65 20 27 57 | 44 45 46 27 20 73 68 65 | same 'W|DEF' she|
|00005720| 6c 6c 20 69 6e 20 4d 50 | 57 20 43 3a 0d ff 00 2a |ll in MP|W C:...*|
|00005730| 00 00 0c 00 00 14 00 0a | 0c 00 00 16 00 10 0c 00 |........|........|
|00005740| 00 14 00 c6 0c 00 00 16 | 00 d1 0c 00 00 14 01 02 |........|........|
|00005750| 0c 00 00 16 01 08 0c 00 | 00 14 00 54 20 20 20 20 |........|...T |
|00005760| 20 20 20 2f 2a 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d | /*---|--------|
|00005770| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 20 44 6f |--------|----- Do|
|00005780| 44 72 61 77 53 69 7a 65 | 20 70 72 6f 63 65 64 75 |DrawSize| procedu|
|00005790| 72 65 20 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |re -----|--------|
|000057a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2a 2f 0d |--------|-----*/.|
|000057b0| 00 06 00 00 09 00 00 16 | 00 00 09 00 00 16 00 1a |........|........|
|000057c0| 20 20 20 20 20 20 20 23 | 69 6e 63 6c 75 64 65 20 | #|include |
|000057d0| 3c 74 79 70 65 73 2e 68 | 3e 0d 00 06 00 00 09 00 |<types.h|>.......|
|000057e0| 00 16 00 1e 20 20 20 20 | 20 20 20 23 69 6e 63 6c |.... | #incl|
|000057f0| 75 64 65 20 3c 71 75 69 | 63 6b 64 72 61 77 2e 68 |ude <qui|ckdraw.h|
|00005800| 3e 0d 00 06 00 00 09 00 | 00 16 00 1e 20 20 20 20 |>.......|.... |
|00005810| 20 20 20 23 69 6e 63 6c | 75 64 65 20 3c 72 65 73 | #incl|ude <res|
|00005820| 6f 75 72 63 65 73 2e 68 | 3e 0d 00 06 00 00 09 00 |ources.h|>.......|
|00005830| 00 16 00 1a 20 20 20 20 | 20 20 20 23 69 6e 63 6c |.... | #incl|
|00005840| 75 64 65 20 3c 66 6f 6e | 74 73 2e 68 3e 0d 00 06 |ude <fon|ts.h>...|
|00005850| 00 00 09 00 00 16 00 1c | 20 20 20 20 20 20 20 23 |........| #|
|00005860| 69 6e 63 6c 75 64 65 20 | 3c 77 69 6e 64 6f 77 73 |include |<windows|
|00005870| 2e 68 3e 0d 00 06 00 00 | 09 00 00 16 00 1a 20 20 |.h>.....|...... |
|00005880| 20 20 20 20 20 23 69 6e | 63 6c 75 64 65 20 3c 6d | #in|clude <m|
|00005890| 65 6e 75 73 2e 68 3e 0d | 00 06 00 00 09 00 00 16 |enus.h>.|........|
|000058a0| 00 1d 20 20 20 20 20 20 | 20 23 69 6e 63 6c 75 64 |.. | #includ|
|000058b0| 65 20 3c 74 65 78 74 65 | 64 69 74 2e 68 3e 0d 00 |e <texte|dit.h>..|
|000058c0| 00 06 00 00 09 00 00 16 | 00 1b 20 20 20 20 20 20 |........|.. |
|000058d0| 20 23 69 6e 63 6c 75 64 | 65 20 3c 65 76 65 6e 74 | #includ|e <event|
|000058e0| 73 2e 68 3e 0d 2d 00 06 | 00 00 09 00 00 16 00 01 |s.h>.-..|........|
|000058f0| 0d 00 00 06 00 00 09 00 | 00 16 00 1a 20 20 20 20 |........|.... |
|00005900| 20 20 20 2f 2a 20 64 65 | 63 6c 61 72 61 74 69 6f | /* de|claratio|
|00005910| 6e 73 20 2a 2f 0d 00 06 | 00 00 09 00 00 16 00 1a |ns */...|........|
|00005920| 20 20 20 20 20 20 20 76 | 6f 69 64 20 44 6f 44 72 | v|oid DoDr|
|00005930| 61 77 53 69 7a 65 28 29 | 3b 0d 00 06 00 00 09 00 |awSize()|;.......|
|00005940| 00 16 00 16 20 20 20 20 | 20 20 20 76 6f 69 64 20 |.... | void |
|00005950| 44 6f 47 72 6f 77 28 29 | 3b 0d 00 06 00 00 09 00 |DoGrow()|;.......|
|00005960| 00 16 00 1a 20 20 20 20 | 20 20 20 76 6f 69 64 20 |.... | void |
|00005970| 44 6f 43 61 6c 63 52 67 | 6e 73 28 29 3b 0d 00 06 |DoCalcRg|ns();...|
|00005980| 00 00 09 00 00 16 00 19 | 20 20 20 20 20 20 20 6c |........| l|
|00005990| 6f 6e 67 20 69 6e 74 20 | 44 6f 48 69 74 28 29 3b |ong int |DoHit();|
|000059a0| 0d 00 00 06 00 00 09 00 | 00 16 00 16 20 20 20 20 |........|.... |
|000059b0| 20 20 20 76 6f 69 64 20 | 44 6f 44 72 61 77 28 29 | void |DoDraw()|
|000059c0| 3b 0d 00 06 00 00 09 00 | 00 16 00 01 0d ff 00 06 |;.......|........|
|000059d0| 00 00 09 00 00 16 00 4f | 20 20 20 20 20 20 20 2f |.......O| /|
|000059e0| 2a 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |*-------|--------|
|000059f0| 2d 2d 2d 2d 2d 2d 2d 20 | 4d 61 69 6e 20 50 72 6f |------- |Main Pro|
|00005a00| 63 20 77 69 74 68 69 6e | 20 57 44 45 46 20 2d 2d |c within| WDEF --|
|00005a10| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00005a20| 2d 2d 2d 2d 2a 2f 0d 30 | 00 06 00 00 09 00 00 16 |----*/.0|........|
|00005a30| 00 44 20 20 20 20 20 20 | 20 70 61 73 63 61 6c 20 |.D | pascal |
|00005a40| 6c 6f 6e 67 20 69 6e 74 | 20 4d 79 57 69 6e 64 6f |long int| MyWindo|
|00005a50| 77 44 65 66 28 76 61 72 | 43 6f 64 65 2c 74 68 65 |wDef(var|Code,the|
|00005a60| 57 69 6e 64 6f 77 2c 6d | 65 73 73 61 67 65 2c 70 |Window,m|essage,p|
|00005a70| 61 72 61 6d 29 0d 00 06 | 00 00 09 00 00 16 00 1d |aram)...|........|
|00005a80| 20 20 20 20 20 20 20 73 | 68 6f 72 74 20 69 6e 74 | s|hort int|
|00005a90| 20 20 20 20 76 61 72 43 | 6f 64 65 3b 0d e7 00 06 | varC|ode;....|
|00005aa0| 00 00 09 00 00 16 00 1f | 20 20 20 20 20 20 20 57 |........| W|
|00005ab0| 69 6e 64 6f 77 50 74 72 | 20 20 20 20 74 68 65 57 |indowPtr| theW|
|00005ac0| 69 6e 64 6f 77 3b 0d 30 | 00 06 00 00 09 00 00 16 |indow;.0|........|
|00005ad0| 00 1d 20 20 20 20 20 20 | 20 73 68 6f 72 74 20 69 |.. | short i|
|00005ae0| 6e 74 20 20 20 20 6d 65 | 73 73 61 67 65 3b 0d 41 |nt me|ssage;.A|
|00005af0| 00 06 00 00 09 00 00 16 | 00 1b 20 20 20 20 20 20 |........|.. |
|00005b00| 20 6c 6f 6e 67 20 69 6e | 74 20 20 20 20 20 70 61 | long in|t pa|
|00005b10| 72 61 6d 3b 0d ff 00 06 | 00 00 09 00 00 16 00 01 |ram;....|........|
|00005b20| 0d 01 00 06 00 00 09 00 | 00 16 00 1b 00 00 00 0f |........|........|
|00005b30| 7d 00 f2 ff 2a 0f 44 5f | 43 6a cf 52 f6 73 80 f2 |}...*.D_|Cj.R.s..|
|00005b40| af 2f f0 d0 00 06 00 00 | 09 00 00 16 00 00 09 00 |./......|........|
|00005b50| 00 16 00 01 0d 00 00 06 | 00 00 09 00 00 16 00 1f |........|........|
|00005b60| 20 20 20 20 20 20 20 20 | 20 52 65 63 74 20 20 20 | | Rect |
|00005b70| 20 20 20 20 2a 61 52 65 | 63 74 50 74 72 3b 0d 00 | *aRe|ctPtr;..|
|00005b80| 00 06 00 00 09 00 00 16 | 00 17 00 00 00 0f 7b 00 |........|......{.|
|00005b90| f2 ff 2a 0f 44 5f 47 45 | f7 70 f2 af 2f f0 d0 00 |..*.D_GE|.p../...|
|00005ba0| 00 06 00 00 09 00 00 16 | 30 3b 00 21 00 00 00 0f |........|0;.!....|
|00005bb0| 52 1c 20 00 00 00 00 2b | 1f 47 45 f7 7f 52 1c 2f |R. ....+|.GE..R./|
|00005bc0| 3b f0 d0 00 00 06 00 00 | 09 00 00 16 20 72 65 74 |;.......|.... ret|
|00005bd0| 75 72 6e 73 2c 20 00 20 | 00 00 00 0f 57 73 95 f7 |urns, . |....Ws..|
|00005be0| 7f 50 24 00 00 f5 77 39 | f5 45 f4 74 5f 77 f3 bf |.P$...w9|.E.t_w..|
|00005bf0| 0d 00 00 06 00 00 09 00 | 00 16 00 6c 00 90 00 b4 |........|...l....|
|00005c00| 00 01 0d 43 00 06 00 00 | 09 00 00 16 00 01 0d eb |...C....|........|
|00005c10| 00 06 00 00 09 00 00 16 | 00 01 0d 2e 00 06 00 00 |........|........|
|00005c20| 09 00 00 16 00 01 0d 00 | 00 06 00 00 09 00 00 16 |........|........|
|00005c30| 00 1b 20 20 20 20 20 20 | 20 20 20 73 77 69 74 63 |.. | switc|
|00005c40| 68 20 28 6d 65 73 73 61 | 67 65 29 20 0d 00 00 06 |h (messa|ge) ....|
|00005c50| 00 00 09 00 00 16 00 0b | 20 20 20 20 20 20 20 20 |........| |
|00005c60| 20 7b 0d 00 00 06 00 00 | 09 00 00 16 00 3e 20 20 | {......|.....> |
|00005c70| 20 20 20 20 20 20 20 20 | 20 63 61 73 65 20 77 44 | | case wD|
|00005c80| 72 61 77 3a 20 20 20 20 | 20 20 20 20 20 20 20 20 |raw: | |
|00005c90| 20 20 20 20 20 2f 2a 20 | 64 72 61 77 20 77 69 6e | /* |draw win|
|00005ca0| 64 6f 77 20 66 72 61 6d | 65 2a 2f 0d 00 06 00 00 |dow fram|e*/.....|
|00005cb0| 09 00 00 16 00 26 20 20 | 20 20 20 20 20 20 20 20 |.....& | |
|00005cc0| 20 20 20 44 6f 44 72 61 | 77 28 74 68 65 57 69 6e | DoDra|w(theWin|
|00005cd0| 64 6f 77 2c 70 61 72 61 | 6d 29 3b 0d 00 06 00 00 |dow,para|m);.....|
|00005ce0| 09 00 00 16 00 14 20 20 | 20 20 20 20 20 20 20 20 |...... | |
|00005cf0| 20 20 20 62 72 65 61 6b | 3b 0d 00 06 00 00 09 00 | break|;.......|
|00005d00| 00 16 00 56 20 20 20 20 | 20 20 20 20 20 20 20 63 |...V | c|
|00005d10| 61 73 65 20 77 48 69 74 | 3a 20 20 20 20 20 20 20 |ase wHit|: |
|00005d20| 20 20 20 20 20 20 20 20 | 20 20 20 2f 2a 20 74 65 | | /* te|
|00005d30| 6c 6c 20 77 68 61 74 20 | 72 65 67 69 6f 6e 20 74 |ll what |region t|
|00005d40| 68 65 20 6d 6f 75 73 65 | 20 77 61 73 20 70 72 65 |he mouse| was pre|
|00005d50| 73 73 65 64 20 69 6e 2a | 2f 0d 00 06 00 00 09 00 |ssed in*|/.......|
|00005d60| 00 16 00 31 20 20 20 20 | 20 20 20 20 20 20 20 20 |...1 | |
|00005d70| 20 74 68 65 52 65 73 75 | 6c 74 20 3d 20 44 6f 48 | theResu|lt = DoH|
|00005d80| 69 74 28 74 68 65 57 69 | 6e 64 6f 77 2c 70 61 72 |it(theWi|ndow,par|
|00005d90| 61 6d 29 3b 0d 00 00 06 | 00 00 09 00 00 16 00 14 |am);....|........|
|00005da0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 62 72 65 | | bre|
|00005db0| 61 6b 3b 0d 00 06 00 00 | 09 00 00 16 00 4c 20 20 |ak;.....|.....L |
|00005dc0| 20 20 20 20 20 20 20 20 | 20 63 61 73 65 20 77 43 | | case wC|
|00005dd0| 61 6c 63 52 67 6e 73 3a | 20 20 20 20 20 20 20 20 |alcRgns:| |
|00005de0| 20 20 20 20 20 2f 2a 20 | 63 61 6c 63 75 6c 61 74 | /* |calculat|
|00005df0| 65 20 73 74 72 75 63 74 | 52 67 6e 20 61 6e 64 20 |e struct|Rgn and |
|00005e00| 63 6f 6e 74 52 67 6e 2a | 2f 0d 00 06 00 00 09 00 |contRgn*|/.......|
|00005e10| 00 16 00 24 20 20 20 20 | 20 20 20 20 20 20 20 20 |...$ | |
|00005e20| 20 44 6f 43 61 6c 63 52 | 67 6e 73 28 74 68 65 57 | DoCalcR|gns(theW|
|00005e30| 69 6e 64 6f 77 29 3b 0d | 00 06 00 00 09 00 00 16 |indow);.|........|
|00005e40| 00 14 20 20 20 20 20 20 | 20 20 20 20 20 20 20 62 |.. | b|
|00005e50| 72 65 61 6b 3b 0d 00 06 | 00 00 09 00 00 16 00 4d |reak;...|.......M|
|00005e60| 20 20 20 20 20 20 20 20 | 20 20 20 63 61 73 65 20 | | case |
|00005e70| 77 4e 65 77 3a 20 20 20 | 20 20 20 20 20 20 20 20 |wNew: | |
|00005e80| 20 20 20 20 20 20 20 2f | 2a 20 64 6f 20 61 6e 79 | /|* do any|
|00005e90| 20 61 64 64 69 74 69 6f | 6e 61 6c 20 69 6e 69 74 | additio|nal init|
|00005ea0| 69 61 6c 69 7a 61 74 69 | 6f 6e 2a 2f 0d 03 00 06 |ializati|on*/....|
|00005eb0| 00 00 09 00 00 16 00 3a | 20 20 20 20 20 20 20 20 |.......:| |
|00005ec0| 20 20 20 20 20 62 72 65 | 61 6b 3b 20 20 20 20 20 | bre|ak; |
|00005ed0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 2f | | /|
|00005ee0| 2a 20 6e 6f 74 68 69 6e | 67 20 68 65 72 65 20 2a |* nothin|g here *|
|00005ef0| 2f 0d 00 06 00 00 09 00 | 00 16 00 4f 20 20 20 20 |/.......|...O |
|00005f00| 20 20 20 20 20 20 20 63 | 61 73 65 20 77 44 69 73 | c|ase wDis|
|00005f10| 70 6f 73 65 3a 20 20 20 | 20 20 20 20 20 20 20 20 |pose: | |
|00005f20| 20 20 20 2f 2a 20 64 6f | 20 61 6e 79 20 61 64 64 | /* do| any add|
|00005f30| 69 74 69 6f 6e 61 6c 20 | 64 69 73 70 6f 73 61 6c |itional |disposal|
|00005f40| 20 61 63 74 69 6f 6e 73 | 2a 2f 0d ff 00 06 00 00 | actions|*/......|
|00005f50| 09 00 00 16 00 44 20 20 | 20 20 20 20 20 20 20 20 |.....D | |
|00005f60| 20 20 20 62 72 65 61 6b | 3b 20 20 20 20 20 20 20 | break|; |
|00005f70| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 2f 2a 20 | | /* |
|00005f80| 77 65 20 64 6f 6e 27 74 | 20 6e 65 65 64 20 74 6f |we don't| need to|
|00005f90| 20 64 6f 20 61 6e 79 2a | 2f 0d 00 06 00 00 09 00 | do any*|/.......|
|00005fa0| 00 16 00 45 20 20 20 20 | 20 20 20 20 20 20 20 63 |...E | c|
|00005fb0| 61 73 65 20 77 47 72 6f | 77 3a 20 20 20 20 20 20 |ase wGro|w: |
|00005fc0| 20 20 20 20 20 20 20 20 | 20 20 20 2f 2a 20 64 72 | | /* dr|
|00005fd0| 61 77 20 77 69 6e 64 6f | 77 27 73 20 67 72 6f 77 |aw windo|w's grow|
|00005fe0| 20 69 6d 61 67 65 2a 2f | 0d ff 00 06 00 00 09 00 | image*/|........|
|00005ff0| 00 16 00 27 20 20 20 20 | 20 20 20 20 20 20 20 20 |...' | |
|00006000| 20 61 52 65 63 74 50 74 | 72 20 3d 20 28 52 65 63 | aRectPt|r = (Rec|
|00006010| 74 20 2a 29 70 61 72 61 | 6d 3b 0d ff 00 06 00 00 |t *)para|m;......|
|00006020| 09 00 00 16 00 2a 20 20 | 20 20 20 20 20 20 20 20 |.....* | |
|00006030| 20 20 20 44 6f 47 72 6f | 77 28 74 68 65 57 69 6e | DoGro|w(theWin|
|00006040| 64 6f 77 2c 2a 61 52 65 | 63 74 50 74 72 29 3b 0d |dow,*aRe|ctPtr);.|
|00006050| 00 06 00 00 09 00 00 16 | 00 14 20 20 20 20 20 20 |........|.. |
|00006060| 20 20 20 20 20 20 20 62 | 72 65 61 6b 3b 0d 00 06 | b|reak;...|
|00006070| 00 00 09 00 00 16 00 4c | 20 20 20 20 20 20 20 20 |.......L| |
|00006080| 20 20 20 63 61 73 65 20 | 77 44 72 61 77 47 49 63 | case |wDrawGIc|
|00006090| 6f 6e 3a 20 20 20 20 20 | 20 20 20 20 20 20 20 2f |on: | /|
|000060a0| 2a 20 64 72 61 77 20 53 | 69 7a 65 20 62 6f 78 20 |* draw S|ize box |
|000060b0| 69 6e 20 63 6f 6e 74 65 | 6e 74 20 72 65 67 69 6f |in conte|nt regio|
|000060c0| 6e 2a 2f 0d 00 06 00 00 | 09 00 00 16 00 24 20 20 |n*/.....|.....$ |
|000060d0| 20 20 20 20 20 20 20 20 | 20 20 20 44 6f 44 72 61 | | DoDra|
|000060e0| 77 53 69 7a 65 28 74 68 | 65 57 69 6e 64 6f 77 29 |wSize(th|eWindow)|
|000060f0| 3b 0d 00 06 00 00 09 00 | 00 16 00 14 20 20 20 20 |;.......|.... |
|00006100| 20 20 20 20 20 20 20 20 | 20 62 72 65 61 6b 3b 0d | | break;.|
|00006110| 00 06 00 00 09 00 00 16 | 00 19 20 20 20 20 20 20 |........|.. |
|00006120| 20 20 20 7d 20 20 2f 2a | 20 73 77 69 74 63 68 20 | } /*| switch |
|00006130| 2a 2f 0d ff 00 06 00 00 | 09 00 00 16 00 1b 20 20 |*/......|...... |
|00006140| 20 20 20 20 20 20 20 72 | 65 74 75 72 6e 20 74 68 | r|eturn th|
|00006150| 65 52 65 73 75 6c 74 3b | 0d ff 00 06 00 00 09 00 |eResult;|........|
|00006160| 00 16 00 1e 20 20 20 20 | 20 20 20 7d 20 20 20 20 |.... | } |
|00006170| 2f 2a 20 4d 79 57 69 6e | 64 6f 77 44 65 66 20 2a |/* MyWin|dowDef *|
|00006180| 2f 0d 00 06 00 00 09 00 | 00 16 00 01 0d 31 00 06 |/.......|.....1..|
|00006190| 00 00 0c 01 00 14 00 46 | 20 20 20 20 20 20 20 2f |.......F| /|
|000061a0| 2a 20 68 65 72 65 20 61 | 72 65 20 74 68 65 20 72 |* here a|re the r|
|000061b0| 6f 75 74 69 6e 65 73 20 | 74 68 61 74 20 61 72 65 |outines |that are|
|000061c0| 20 64 69 73 70 61 74 63 | 68 65 64 20 74 6f 20 62 | dispatc|hed to b|
|000061d0| 79 20 4d 79 57 69 6e 64 | 6f 77 44 65 66 0d 00 06 |y MyWind|owDef...|
|000061e0| 00 00 09 00 00 16 00 01 | 0d ff 00 06 00 00 09 00 |........|........|
|000061f0| 00 16 00 55 20 20 20 20 | 20 20 20 2f 2a 2d 2d 2d |...U | /*---|
|00006200| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00006210| 2d 2d 2d 2d 2d 2d 2d 2d | 20 44 6f 44 72 61 77 20 |--------| DoDraw |
|00006220| 66 75 6e 63 74 69 6f 6e | 20 2d 2d 2d 2d 2d 2d 2d |function| -------|
|00006230| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00006240| 2d 2d 2d 2d 2d 2d 2a 2f | 0d ff 00 06 00 00 09 00 |------*/|........|
|00006250| 00 16 00 29 20 20 20 20 | 20 20 20 76 6f 69 64 20 |...) | void |
|00006260| 44 6f 44 72 61 77 28 57 | 69 6e 64 54 6f 44 72 61 |DoDraw(W|indToDra|
|00006270| 77 2c 44 72 61 77 50 61 | 72 61 6d 29 0d ff 00 06 |w,DrawPa|ram)....|
|00006280| 00 00 09 00 00 16 00 20 | 20 20 20 20 20 20 20 57 |....... | W|
|00006290| 69 6e 64 6f 77 50 74 72 | 20 20 20 20 57 69 6e 64 |indowPtr| Wind|
|000062a0| 54 6f 44 72 61 77 3b 0d | 00 06 00 00 09 00 00 16 |ToDraw;.|........|
|000062b0| 00 1f 20 20 20 20 20 20 | 20 6c 6f 6e 67 20 69 6e |.. | long in|
|000062c0| 74 20 20 20 20 20 44 72 | 61 77 50 61 72 61 6d 3b |t Dr|awParam;|
|000062d0| 0d ff 00 06 00 00 09 00 | 00 16 00 01 0d ff 00 06 |........|........|
|000062e0| 00 00 09 00 00 16 00 17 | 20 20 20 20 20 20 20 7b |........| {|
|000062f0| 20 20 2f 2a 20 44 6f 44 | 72 61 77 20 2a 2f 0d ff | /* DoD|raw */..|
|00006300| 00 06 00 00 09 00 00 16 | 00 2d 20 20 20 20 20 20 |........|.- |
|00006310| 20 20 20 20 20 20 20 2f | 2a 20 63 6f 64 65 20 66 | /|* code f|
|00006320| 6f 72 20 44 6f 44 72 61 | 77 20 67 6f 65 73 20 68 |or DoDra|w goes h|
|00006330| 65 72 65 20 2a 2f 0d ff | 00 06 00 00 09 00 00 16 |ere */..|........|
|00006340| 00 17 20 20 20 20 20 20 | 20 7d 20 20 2f 2a 20 44 |.. | } /* D|
|00006350| 6f 44 72 61 77 20 2a 2f | 0d ff 00 06 00 00 09 00 |oDraw */|........|
|00006360| 00 16 00 01 0d ff 00 06 | 00 00 09 00 00 16 00 54 |........|.......T|
|00006370| 20 20 20 20 20 20 20 2f | 2a 2d 2d 2d 2d 2d 2d 2d | /|*-------|
|00006380| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00006390| 2d 2d 2d 2d 20 44 6f 48 | 69 74 20 66 75 6e 63 74 |---- DoH|it funct|
|000063a0| 69 6f 6e 20 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |ion ----|--------|
|000063b0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000063c0| 2d 2a 2f 0d 00 06 00 00 | 09 00 00 16 00 2b 20 20 |-*/.....|.....+ |
|000063d0| 20 20 20 20 20 6c 6f 6e | 67 20 69 6e 74 20 44 6f | lon|g int Do|
|000063e0| 48 69 74 28 57 69 6e 64 | 54 6f 54 65 73 74 2c 74 |Hit(Wind|ToTest,t|
|000063f0| 68 65 50 61 72 61 6d 29 | 0d ff 00 06 00 00 09 00 |heParam)|........|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.